Description
Is your feature request related to a problem? Please describe
If you try to open any Alire based project in gitpod (for example, Adabots_Examples), the Ada language server extension will fail because it does not have the required environment variables set. Note how, although the Ada language server extension is installed in the above linked project, we get an error about missing .gpr files. This is because the environment variable GPR_PROJECT_PATH is not set up correctly. When opening a local editor, like VSCode, I can first open a terminal in the project root and issue eval $(alr printenv)
to set all the environment variables as necessary, and then start vscode from that terminal. So I'm looking for a way to achieve the same using gitpod.
Describe the behaviour you'd like
I want to be able to set a command to run in the workspace, before opening gitpod, such that they are defined for the whole workspace, including internal processes such as the LSP client inside a plugin.
Describe alternatives you've considered
Alire itself has a nice workaround, but it's a hassle to have to create a special .gpr file that hardcodes the necessary relative paths just for gitpod. Alire itself needs this because otherwise you need alire to build alire, which would be annoying, but other alire projects should just assume that the user can set environment variables for the whole editor.
It would also be possible to fork the Ada language server or the Ada VSCode plugin, so that it would recognize Alire projects and set the environment variables itself. However, I'd rather not, since this isn't necessary for any other editors than gitpod, and I assume the respective project maintainers would therefore reject such a PR.