-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ada.selectProject command to select project #1132
Add ada.selectProject command to select project #1132
Conversation
source/ada/lsp-ada_handlers.adb
Outdated
"Note: you can configure a project " & | ||
" through the ada.projectFile setting.")); | ||
"Configure using the ada.chooseProject command" & Line_Feed & | ||
" or the ada.projectFile setting.")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second thought, we probably don't want to mention vscode specific stuff here. ada.projectFile
is actually what you need to set in all LSP clients.
90ed0e1
to
076b2e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have README.md
updated.
This adds a filedialog command called 'Ada Select GPR Project' which lets the user select a .gpr file and puts that into the workspace configuration. For a test project, see https://github.com/TamaMcGlinn/test_multigpr
076b2e2
to
38f4979
Compare
Added this note in the readme under VSCode > project support
|
@TamaMcGlinn Any idea? |
I had not tested that; good find! I will have more time to test this next week, I'll get back to you when I know if I can reproduce and/or fix it. My own test was using test_multigpr, and just checking from the main.adb where cntrl+click on the Foo function call takes you. With that I could see that the language server was switching as soon as the command had been issued. |
This adds a filedialog command called 'Ada Select GPR Project' which lets the user select a .gpr file and puts that into the workspace configuration.
For a test project, see https://github.com/TamaMcGlinn/test_multigpr
Tested this with latest Ada_language_server (23.0.14) and it works beatifully; even if you had no .vscode/settings.json, it is created if you run the command. Note this command is only needed for non-alire projects, as ALS autodetects the right gpr file for alire projects now.