Commit Graph

146 Commits

Author SHA1 Message Date
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
Andry Ogorodnik
de05e4a410 T826-026 Workspace_Symbols Request
Do not process too small pattern because this produces a huge
 response that is useless and costs a while.

Corrections for requests cancelling
2021-09-14 16:30:21 +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
Andry Ogorodnik
41f417aa94 T826-026 Correction for cancelling Workspace_Symbols_Request 2021-09-07 13:11:55 +03:00
Maxim Reznik
9233e60b47 T826-026 Add a generic version of Has_Been_Canceled
to reduce copy/paste.
2021-09-06 14:06:35 +03:00
Vadim Godunko
10517fecb6 U827-008 Increase size of stack for request processing task
... to prevent craches on deep nesting calls in LAL.
2021-09-03 11:15:19 +03:00
Maxim Reznik
5a5d4d720b U224-018 Disable ASCII package as obsolescent 2021-09-01 16:34:17 +03:00
Vadim Godunko
95a6b2b500 T629-024 Qualify type to prevent build failures. 2021-08-20 16:33:54 +03: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
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
04775081b9 T714-004 Remove use of LSP_String 2021-06-23 10:41:39 +03:00
Maxim Reznik
e85b22259e U301-023 Create LSP_URI type and disable "=" for it
to avoid URI comparisons.
2021-06-10 11:38:25 +03:00
Maxim Reznik
e344352091 Add ShowDocument request support. 2021-04-30 18:20:16 +03:00
Vadim Godunko
16ad8c56d8 T714-004 Reflect changes in VSS API 2021-03-15 11:20:33 +03:00
Nicolas Setton
2ef09ab860 U308-004 When receiving an exception, always send a response
Move the logic for exception handling for requests to the
Error_Decorator, so that a response adapted to the request
is sent to the client.
2021-03-14 09:27:19 +00:00
Maxim Reznik
58db233aa3 TC21-032 Move to LSP 3.16. SemanticTokens 2021-03-12 18:34:50 +02:00
Nicolas Setton
867181eea2 U308-004 catch "assertion_failure" an an expected exception
The stable version of libadalang_tools uses this for invalid
code.

Adjust a test driver to catch another exception.
2021-03-11 11:56:32 +00:00
Nicolas Setton
0c8543a41e U308-004 U305-040 Minor update on exception handling
Catch Predicondition_Failure in the same way we intercept
Property_Error, ie assuming that this can happen in the normal
flow when working on invalid code, and not report them to the
IDE.

Systematically store the symbolic backtrace of exceptions in the
log.

Factorize the code to do this for both notifications and requests.
2021-03-10 09:56:46 +00:00