60 Commits

Author SHA1 Message Date
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
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
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
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
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
Adrien Boulanger
4989b86087 T903-007: purge ALS_Calls and ALS_Calls_By requests 2021-06-25 14:40:29 +02:00
Vadim Godunko
397d3d16ef T714-004 Use Virtual_String for method parameter. 2021-06-23 10:41:39 +03:00
Vadim Godunko
4434c26ad4 T714-004 Use Virtual_String for jsonrpc field. 2021-06-23 10:41:39 +03:00
Vadim Godunko
74f3bf7985 T714-004 Use Virtual_String for error message. 2021-06-23 10:41:39 +03:00
Adrien Boulanger
ee91f1b08d T723-027: Implement SignatureHelp
Use P_All_Env_Elements and filter the returned node
to find all the function declaration with the same name.
Fix param type in the generated spec.

Add tests.
2021-04-22 11:16:17 +02:00
Anthony Leonardo Gracio
7b70fa4a13 R306-004: Add implementation for textDocument/highlight
A basic test has also been added.
2020-11-23 12:48:07 +01:00
Nicolas Setton
ff913823a8 TA09-019 Add support for filesystem monitoring
This adds support for monitoring the filesystem for changes
that might occur in project directories, outside of the IDE.

Add support for `workspace/didChangeWatchedFiles`.

Add an optional dependency on ada_libfswatch.gpr, and document
it. Add support in the travis CI builder to generate it on Linux.
Add a stub project to make the ALS useable without this dependency.

Rework the way files are indexed, to allow reindexing for any
file that might change on disk. In particular, no longer store
in LSP.Ada_Contexts a reference to the "Last_Indexed" file, which
prevented indexing of new files altogether.
2020-11-11 12:03:51 +00:00
Maxim Reznik
46c17a1298 TA12-011 Add stubs for textDocument/prepareRename request 2020-10-12 15:32:21 +03:00
Maxim Reznik
ae65fde47b T903-007 Add a stub for callHierarchy/outgoingCalls request 2020-09-21 14:04:19 +03:00
Maxim Reznik
374fc38dee T903-007 Add a stub for callHierarchy/incomingCalls request 2020-09-21 14:04:19 +03:00
Maxim Reznik
9b1af28af9 T903-007 Add a stub for textDocument/prepareCallHierarchy request 2020-09-21 14:04:19 +03:00
Maxim Reznik
d72105c486 Add textDocument/alsCalls to generate.py 2020-09-21 14:04:19 +03:00
Simon Wright
0dc0ffd762 Ensure scripts are compatible with both Python 2 and 3
* scripts/generate.py: All files that are to be opened for write and
      are to contain text must be opened "w", not "wb".
2020-09-13 12:40:45 +01:00
Anthony Leonardo Gracio
ac226926e8 SC16-001: Implement a custom request to show unit dependencies
A new custom request has been introduced to query the dependencies of a
given unit.

Documentation and a two tests have been added for this custom request.
2020-06-09 15:23:35 +02:00
Andry Ogorodnik
de9cb9c870 S628-009 Stubs for formatting and rangeFormatting requests 2020-05-06 13:04:10 +03:00