Fix tests failures related to subprogram called on a null entity
See merge request eng/ide/ada_language_server!1779
(cherry picked from commit 8a93a39839)
34b956f2 Fix tests failures related to subprogram called on a null entity
Co-authored-by: Adrien Boulanger <boulanger@adacore.com>
Rewrite LAL/LSP position/range conversion
See merge request eng/ide/ada_language_server!1805
(cherry picked from commit 72f70c21d5)
9cf1dde8 Rewrite `To_LSP_Column` to compute LSP column index at the end
e7715b2f Minor reformatting
Co-authored-by: Vadim Godunko <godunko@adacore.com>
Use `Fence` priority for
* `didOpen`
* `didClose`
* `didChangeWorkspaceFolders`
* `exit`
* `initialize`
Before this patch the default priority was `Fence`.
Refs #1141
We now append the right 'als-auto-import' command to
invisible completion items, when the 'insertWithClauses' setting
is enabled.
This allows client that support executing completionItem commands
to execute the attached command in order to add the missing with-clause,
appending the qualifier if not already specified.
Automatic tests for both cases (i.e: with and without an already specified
qualifier) have been added.
For eng/ide/ada_language_server#1159
before creating a next job. It is to fix this scenario:
* didChage document has been executed and waits its completion
* the next request creates a job, job remebers AnalysisUnit
* this job for request triggers completion of didChange and
reparse AnalysisUnit
* then the job is executed with raising Stale_Reference exception
After this patch, the request triggers completion before next
job is actually created, so it can't get previous version of AU.
Refs #1141