Commit Graph

870 Commits

Author SHA1 Message Date
Anthony Leonardo Gracio
3832a50276 V202-064: add safety checks in completion
In both invisible and aggregate completion providers.
2022-03-30 11:30:05 +02:00
Anthony Leonardo Gracio
715516b003 V225-028: Don't try to complete Ada_Node_List nodes
This can happen when completion is trigerred while typing
within a comment for instance. Make sure to not try to complete
list of nodes, avoiding ALS hangs.
2022-03-29 14:42:55 +02:00
Anthony Leonardo Gracio
1b789732ac V202-064: Make ALS more robust to several didOpen
by using Include instead of Insert, allowing the client
to send several didOpen notifications for the same
document.
2022-03-18 16:06:07 +01:00
Anthony Leonardo Gracio
c79ca47a7a V202-064: Add nullity check for completion 2022-03-17 15:03:48 +01:00
Maxim Reznik
61fed4a2c4 UC13-013 Don't keep Libadalang's Defining_Name objects
This should fix stale_reference_error exceptions.
2022-02-09 14:01:21 +02:00
Anthony Leonardo Gracio
691c58d9b7 UC02-052: Add 'overriding' reference kind
A basic test has been added and the other tests have been
adapted too.
2021-12-16 16:10:17 +01:00
Adrien Boulanger
1dff249351 UA20-011: Fix completion parameter sort when having >10 results
Separate the completion parameter results using a "+" before and
properly index them.
2021-10-29 11:02:56 +02:00
Adrien Boulanger
74d2224f5d UA21-041: Parameters completion handling of dotted call
Add a test
2021-10-27 11:42:22 +02:00
Anthony Leonardo Gracio
03a462e132 UA20-006: Use P_Canonical_Part to avoid duplicates
This will return the same Defining_Node for subprogram declarations
and bodies, avoiding duplicates that might be returned by LAL.

Add an automatic test.
2021-10-22 14:56:49 +02:00
Anthony Leonardo Gracio
c3ef688cc9 UA06-031: Don't check for tokens in Is_End_Label filter
Since we are only trying to detect end name nodes. This
allows to have keyword completion after 'end', for instance
in 'end loop'.
2021-10-07 10:54:56 +02:00
Joao Azevedo
55974bc20c UA06-051 Added check to process comments 2021-10-06 17:30:41 +01:00
Anthony Leonardo Gracio
3b06b62d39 UA06-032: Add completion for attributes
All the tests have been adapted.
2021-10-06 17:27:50 +02:00
Anthony Leonardo Gracio
2a66172f6d UA05-024: Add special case in completion for end names
The existing automatic test has been adapted.
2021-10-06 16:57:28 +02:00
Maxim Reznik
9060f06b37 U922-009 Don't index files after shutdown request
because it's useless and causes timeout on some tests.
2021-10-06 16:30:52 +03:00
Joao Azevedo
a9f892ca47 U415-027 Added support to resourceOperations client capability
File creations/deletions/renames are sent according to the capabilities
sent by the client in `workspace.workspaceEdit.resourceOperations`.
Added a test case where a top level declartion is renamed and file renames
are computed but not sent.
2021-10-05 12:16:09 +02:00
Joao Azevedo
a77520b433 U415-027 Added file renaming of top level decls
Added test cases for this functionality.
Updated test suite baseline.
2021-10-05 12:16:09 +02:00
Joao Azevedo
5397463d4d U415-027 Baseline update: use new safe rename interface 2021-10-05 12:16:09 +02:00
Adrien Boulanger
23e6c2b782 U929-049: Completion param provider enhancement
- Add documentation for "Params of X" item (use lazy computation
if possible)
- Keep the results grouped by family
- Fix the kind of param item
- Fix wrong sortText for invisible symbols

Adapt tests
2021-10-01 15:44:37 +02:00
Adrien Boulanger
0ace5e7931 U929-027: Various completion provider enhancement.
- don't trigger completion when inside a string literal
- add "," as a trigger character to automatically
have "completion parameter" when writing.
- automatically add a whitespace when adding a parameter after
a ","

Adapt the tests.
2021-09-30 16:41:44 +02:00
Andry Ogorodnik
7e41b50b9e T826-026 New Visit method has been added
Contains Token as a parameter for handlers that need it.
2021-09-30 14:08:42 +03:00
Adrien Boulanger
9d720bef7f U913-028: Completion provider for parameters
For a function call, propose a snippet with all parameters or
the parameters individually.
The choices are filtered using the previous designators.

Add a test.
2021-09-28 14:45:10 +02: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
Anthony Leonardo Gracio
4f4806bfe4 U921-010: Avoid duplicates in completion
by using full sloc image comparison. This is needed in particular
for inherited subprograms coming from generic packages that are
instantiated multiple times: from the LAL perspective these nodes
are different, which is not what we want for completion.

An automatic test has been added.
2021-09-21 15:39:16 +02:00