Querying 'textDocument/definition' on a source file mention
in a GPR file (e.g: 'for Main use ("main.adb")' now opens
the mentioned source file.
For eng/ide/ada_language_server#1733
For tool switches completion.
Adapt the Python script to handle more switches formats
(e.g: switches with a short and long version, like '-v,
--verbose').
For eng/ide/ada_language_server#1741
If the client supports it, which is the case of VS Code.
labelDetails are displayed in gray, next to the completion
item's label: displaying the doc here gives a preview to
the user, which is particularly useful when trying to
understand what the selected switch is doing.
Add a test.
For eng/ide/ada_language_server#1741
* Trigger it only if 'use' has been specified after
Default_Switches or Switches
* Handle concatenation constructs
(e.g: 'for Default_Switches ("ada") use Var1 & Var2 & (')
* Add more tests
For eng/ide/ada_language_server#1741
The database is created via a Python script that parses the
--help output of tools, and encapsulates it in a JSON-structured
string database in Ada.
The GPR file parser has been modified to handle completion for
the Default_Switches and Switches attributes inside packages,
and propose completion when available.
For eng/ide/ada_language_server#1741
Avoid the off by 1 when computing the indentation of a line using
the array. And move the -1 to the fallback internal computation.
Adapt test because rangeFormatting in fallback mode is also
indenting the current line
Add setting to control "gpr file diagnostics"
Automatically refresh all the diagnostics when changing the
settings.
Add a test.
For eng/ide/ada_language_server#1455
Before this patch, the language server initialized versions of all newly
opened file to 1. However, the language server protocol defines a
parameter for didOpen that says that the client gets to decide the
initial versions of opened files. One client, namely Helix 25.1, passes
an initial value of 0 which caused e.g. renaming a variable right after
opening a file to fail.
This patch makes the initial value of versions the one that's passed by
the client.
This source publishes diagnostics on the alire.toml file in
case of errors found while trying to setup an Alire project
(e.g: an alire.toml file is present but 'alr' is not available
in the user's PATH).
Add a test for this.
For eng/ide/ada_language_server#1533