144 Commits

Author SHA1 Message Date
Maxim Reznik
338d7b64e7 Use dependency commits from a file to build ALS.
Refs #1351
2024-09-13 17:12:54 +03:00
Maxim Reznik
e34dc18820 Restore GitHub Action to build ALS on AArch64 Linux
with cross-toolchain.

Ref #1387
2024-09-02 11:08:27 +03:00
Maxim Reznik
20746539db Add gnatformat as a dependency
Refs #1387
2024-08-12 10:09:38 +00:00
Maxim Reznik
a4d1341319 Use Alire to build ALS on GitHub
Ref #1387
2024-08-06 14:51:41 +03:00
Anthony Leonardo Gracio
94ab3d7c8e Improve the replay.py script
Add proper arguments to specify the log file and the output file.

For eng/ide/ada_language_server#1197
2023-10-30 11:07:33 +00:00
Abdellah Belaid
f6db69ace2 Add GNATtest Integration
(cherry picked from commit 2249a9ec78)
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
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
Maxim Reznik
89c59e31f6 VB30-016 Read initial configuration
from `initializationOptions` of `initialize` request.
Closes #1079
2023-01-13 22:46:06 +02:00
Joao Azevedo
6a3a37789c Create test directory if it does not exist 2022-07-15 13:17:29 +01: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
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
Vadim Godunko
043e8485d2 T714-004 Use Virtual_String into LSP_URI type. 2021-12-07 20:09:27 +03:00
Joao Azevedo
28ad0ed8df S314-015 Added 'Add_Parameter' refactoring tool
Added 'Check_Syntax' protocol extension
Added test case for this tool
Adjusted existing test cases of other refactoring tools
2021-11-15 16:55:15 +00:00
Vadim Godunko
dee1b1ebda Reflect changes in VSS JSON API. 2021-09-21 18:16:08 +03:00
Anthony Leonardo Gracio
2fc9fa8b96 U622-021: Compute some completion items properties lazily
Use the newly added completionItem/resolve request to compute
the 'documentation' and 'detail' fieds of completion items lazily
when the client supports it (i.e: when a given item gets selected
in the completion window).

This makes the ALS way faster to return completion items for packages
that contain a huge number of declarations (e.g: Libadalang.Common).

VS Code already supports this lazy computation method but not other
clients.
2021-09-07 13:41:48 +02:00
Maxim Reznik
01858ef831 U224-018 Drop ASCII.LF from JSON
The ASCII package is a depricated unit. The LF isn't required in JSON
syntax anyway.
2021-09-01 16:34:17 +03:00
Andry Ogorodnik
1ded9fe6bb T826-026 "workspace/symbol" request with filtration
The request has optional fields that allow doing filtering on
 the server-side. Needed to reduce the numbers of records in
 the response.
2021-08-19 11:30:37 +03:00
Anthony Leonardo Gracio
9e81ea65bd U804-021: Fix type for SignatureHelpParams
The context field was missing. Will be useful for improvements
later.
2021-08-05 16:21:10 +02:00
Vadim Godunko
eee46f2209 T714-004 Use Virtual_String_Vector. 2021-07-02 13:31:59 +03:00
Adrien Boulanger
4989b86087 T903-007: purge ALS_Calls and ALS_Calls_By requests 2021-06-25 14:40:29 +02:00