Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

alr edit with VS Code opens project file instead of project directory #1692

Closed
2 tasks done
yannickmoy opened this issue Jun 5, 2024 · 3 comments · Fixed by #1703
Closed
2 tasks done

alr edit with VS Code opens project file instead of project directory #1692

yannickmoy opened this issue Jun 5, 2024 · 3 comments · Fixed by #1703
Assignees

Comments

@yannickmoy
Copy link
Contributor

Checklist

  • I've included the output of alr version.
  • I've included complete steps to reproduce my issue.

Describe the bug
When running alr edit with VS Code as the editor, it runs code my_project.gpr which simply opens the project file. It looks like it would be more useful to run code . to open the current project directory. WDYT?

alr version
alr 2.0.1

@mosteo
Copy link
Member

mosteo commented Jun 10, 2024

I indeed always open with code ., I wonder if opening the .gpr file has any implication for the Ada plugin. @reznikmm, I think you'll have the answer to this.

@yannickmoy
Copy link
Contributor Author

No effect that I can see, expect that it just opens the project file, which is typically not what you want.

@reznikmm
Copy link
Contributor

Ada VS Code extension doesn't use code arguments. So it's better to execute code . instead of code ${GPR_FILE}.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants