85 Commits

Author SHA1 Message Date
Boulanger
893923eb62 Improve settings related to diagnostics
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
2025-03-07 09:48:59 +00:00
Nicolas Setton
11aa92aaae Do not use an access type discriminant for a mutable type
... This is not allowed.

To circumvent, define a local class wide access type.

For https://gitlab.adacore-it.com/eng/toolchain/gnat/-/issues/993
2024-08-02 10:53:22 +00:00
Anthony Leonardo Gracio
4a032fb8ac Add a Kill_Process procedure to LSP clients
For eng/ide/gnatstudio#196
2023-12-13 10:18:40 +00:00
Vadim Godunko
14b9949046 Sync with changes in VSS JSON API. 2023-06-23 10:21:44 +00:00
Maxim Reznik
296b94b313 W330-005 Minor code refactoring
Avoid exception raising on broken LSP stream in LSP client.

In LSP server replace standard output to protect against Put_Line
in code and dependencies.
2023-06-20 20:11:52 +00:00
Vadim Godunko
7de953f381 Update code to new Spawn API. 2023-04-26 15:38:45 +03: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
5ce5e86889 W119-049 Add --on-hang-script option to tester-run 2023-02-02 14:11:39 +00:00
Maxim Reznik
094f132ad7 W119-049 Use VSS.Command_Line to parse tester-run options 2023-02-02 14:11:39 +00:00
Maxim Reznik
579b5f9f66 Update ALS after changes in Spawn. 2022-12-26 15:26:14 +02:00
Adrien Boulanger
737ee07813 VA05-011: Make lsp_client resilient to invalid json
Add a custom exception and it's handler.
2022-10-13 11:43:20 +02:00
Anthony Leonardo Gracio
b2e7bc9ed9 UA28-007: Fix fileOperations requests names 2021-12-13 14:53:11 +01: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
1c9a703f6d U310-022 Use new function for VS->US conversion. 2021-12-06 13:23:47 +03:00
Vadim Godunko
cd55385617 T714-004 Use of Virtual_String for optional string. 2021-12-01 09:55:09 +03:00
Vadim Godunko
63e6a44b51 T714-004 Use Optional_Virtual_String in ApplyWorkspaceEdit 2021-12-01 09:55:09 +03:00
Andry Ogorodnik
0cde301dc0 U910-020 Partial response for Workspace_Symbols request 2021-09-23 13:27:02 +03:00
Andry Ogorodnik
e5582f7760 U910-020 Partial response for Workspace_Symbols request 2021-09-23 13:27:02 +03:00
Vadim Godunko
dee1b1ebda Reflect changes in VSS JSON API. 2021-09-21 18:16:08 +03:00
Vadim Godunko
63f231c283 T714-004 Use Virtual_String for 'method' member of notifications. 2021-06-23 10:41:39 +03:00
Vadim Godunko
1b4562be39 T714-004 LSP_Number_Or_String type use Virtual_String. 2021-06-23 10:41:39 +03:00
Vadim Godunko
b9cf2945f5 T714-004 Use Virtual_String for 'method' field. 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
Vadim Godunko
44d7dd8828 U505-038 Reflect chnages in Process API. 2021-05-20 23:18:05 +03:00