33 Commits

Author SHA1 Message Date
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
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
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
Joao Azevedo
ec5f64dd36 SC27-003 Implement ALS Calls Request
Support for tasks missing due to bug in libadalang [T716-049].
CalledBy request documentation typos fixed.
Add documentation for ALS Calls request.
Add a test for ALS Calls request.
2020-07-21 16:40:47 +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
Maxim Reznik
b595b8a6fa T212-025 Add SelectionRange request
to complete migration to LSP 3.15.
2020-03-20 19:05:27 +02:00
Maxim Reznik
24d8f40136 SA21-039 Add textDocument/foldingRange request 2020-01-21 14:19:00 +02:00
Maxim Reznik
c83ead00bb SA21-039 Add textDocument/colorPresentation request 2020-01-15 18:11:19 +02:00
Maxim Reznik
83af4cc932 SA21-039 Add textDocument/documentColor request. 2020-01-15 18:11:19 +02:00
Maxim Reznik
b45ca08a6a SA21-039 Fix 4 requests to be compatible with LSP 3.14
Requests are:
 * textDocument/definition
 * textDocument/declaration
 * textDocument/implementation
 * textDocument/typeDefinition
2020-01-14 18:10:16 +02:00
Maxim Reznik
7c25f0396a SA21-039 Add documentLink request. 2020-01-14 13:25:34 +02:00
Maxim Reznik
cf95cb2e64 SC13-034 Don't raise Program_Error on unknown method.
Use a dedicated Unknown_Method exception. Replace if statements
in message decoders with Generic_Dispatching_Constructor and
a hash table.

Add test case for unknown request
2020-01-06 17:35:45 +02:00
Nicolas Setton
65372a5ec5 SC05-038 Implement 'textDocument/implementation'
Generate the boilerplate to support this, and implement the body.

Revisit the way we handle contexts: store the source files in an ordered
set to improve speed of lookup and memory management.
2019-12-20 11:05:48 -05:00
Maxim Reznik
062fbbb23b SA15-065 Add textDocument/declaration request. 2019-11-29 12:37:05 +02:00
Nicolas Setton
e9b5d42de3 SB18-028 Allow requests processing during Indexing
Make the indexing take place "in the background".

To do this,
  * make the index subprogram stop itself when there is work on the queue

  * add an interface that allows the server to do operations after each
    request/operation, and use this to relaunch an indexing request
2019-11-20 13:15:21 -05:00
Maxim Reznik
15fb5e8ef0 SA02-039 Rewrite Property_Error_Decorators using generics.
Rename Property_Error_Decorators to Error_Decorators. Catch other
exceptions also and run On_Error procedure in these cases.
2019-10-22 15:57:49 +03:00
Maxim Reznik
9ec9c95c66 Add testcase for $/cancelRequest
New auxilary request `$/alsDebug` was added to suspend request
execution until message input queue has given number of messages.
2019-09-18 22:28:15 +03:00
Maxim Reznik
f06ff6f9b7 S625-025 Add 'Cancel' notification 2019-09-12 15:05:26 +03:00