365 Commits

Author SHA1 Message Date
Abdellah Belaid
f6db69ace2 Add GNATtest Integration
(cherry picked from commit 2249a9ec78)
2023-08-07 14:08:01 +00:00
Anthony Leonardo Gracio
215facb83c Publish all diagnostics when refactorings fail
We now publish all the existing diagnostics when a refactoring
command fails, avoiding to override all the diagnostics that could
already be present in the opened editors.

Add a test.

For eng/ide/ada_language_server#1157

(cherry picked from commit 5e3e14199c)
2023-08-07 14:08:01 +00:00
Joao Azevedo
67557cb30b Add onTypeFormatting request initial implementation
(cherry picked from commit 44ed79e094)
2023-08-07 14:08:01 +00:00
Vadim Godunko
14b9949046 Sync with changes in VSS JSON API. 2023-06-23 10:21:44 +00:00
Abdellah Belaid
f907614666 Add Gpr tasks to build and run main subprograms
Add a Language Server extension to get the project main sources (glsMains request).
Add a Language Server extension to get the project main executables (glsExecutables request).
Activate the extension when Gpr or Ada sources are present in the current directory or sub-directory (only 1 level lookup).
Add tests to the VS Code extension test-suite, testing the alsCheckSyntax, glsMains and glsExecutables requests.
2023-05-09 15:48:42 +01:00
Anthony Leonardo Gracio
ed859b18bb Add support for setTrace notification
In order to not raise an exception when VS Code sends it.

We don't handle it for now since VS Code already outputs a lot
of useful information (resquests being sent, results...) when
the trace setting is set to 'messages' or 'verbose'.

This could be used in the future if we want to have more debug
traces in the ALS.

closes eng/ide/ada_language_server#1116
2023-03-22 17:08:30 +00:00
Anthony Leonardo Gracio
5d65bfe7aa VB23-029: Use diagnostics to report renaming collisions
This allows to display the collisions in the VS Code
Problems view, which then allows to navigate to the
colliding definitions.
2023-03-09 11:04:25 +00:00
Maxim Reznik
89c59e31f6 VB30-016 Read initial configuration
from `initializationOptions` of `initialize` request.
Closes #1079
2023-01-13 22:46:06 +02:00
Anthony Leonardo Gracio
567d5b406f UB25-027: Add a custom request to list source directories
Allowing the extension to query them in order to add them to the workspace
if not already present.

This allows to search for files that come from imported projects that might
not be under the workspace root directory.

This works only for importing non-externally built source directories
for the moment.
2022-06-24 15:54:53 +02:00
Maxim Reznik
2c22be75cb U908-034 Add semantic token range request stubs 2022-05-11 16:20:21 +03:00
Maxim Reznik
7348ee929f U908-034 Fix SemanticTokensParams I/O routines 2022-04-21 14:46:06 +03:00
Maxim Reznik
5696e6e782 U908-034 Add stubs for a semantic tokens request
`textDocument/semanticTokens/full`.
2022-04-21 14:46:06 +03:00
Joao Azevedo
c42778d62d Fix casing of multiple names 2022-04-18 11:49:18 +02:00
Anthony Leonardo Gracio
9d19310141 UB29-023: Provide log file name in programInfo
This can be used by GS to know which is the log file of the
current ALS session. Needed to include the correct log file in
bug report archives.
2022-01-11 08:43:00 +00:00
Joao Azevedo
f81f7d016f UA28-007 Added file operation requests and notifications
Added different behaviours depending on the change kind.
Improved DidChangeWatchedFiles Notification.
Added test cases.
2021-12-13 09:08:00 +00:00
Anthony Leonardo Gracio
ae16dff33b UC02-052: Add 'overriding' reference kind
A basic test has been added and the other tests have been
adapted too.
2021-12-10 15:29:10 +01:00
Vadim Godunko
2ac4408f16 T714-004 Remove LSP_String. 2021-12-07 20:09:27 +03:00
Vadim Godunko
d7e9a75dfb T714-004 Remove unused code. 2021-12-07 20:09:27 +03:00
Vadim Godunko
59f504a31d T714-004 Define "=" operator explicitly...
... to workaround link failure when Element_Type has non-default
equality operator and some member with abstract equality operator.
2021-12-07 20:09:27 +03:00
Vadim Godunko
1d68cf6403 T714-004 Use Virtual_String. 2021-12-07 20:09:27 +03:00
Vadim Godunko
043e8485d2 T714-004 Use Virtual_String into LSP_URI type. 2021-12-07 20:09:27 +03:00
Nicolas Setton
131864a56b Add support of square brackets
Do this under the option "-gnatX", which works both on AdaCore compilers
and on recent community compilers.
2021-12-03 18:55:17 +00:00
Vadim Godunko
98238fe8a9 T714-004 Remove "+" operator, it is not needed. 2021-12-02 13:23:39 +03:00
Vadim Godunko
e46026e083 T714-004 Move Optional_Virtual_String_Vector into LSP.Types. 2021-12-02 13:23:39 +03:00
Vadim Godunko
43c6ebeaa4 T714-004 Remove LSP_String_Vector type. 2021-12-02 13:23:39 +03:00