The ALS can send a mix of markup and escape text, we should not
escape it a second time. At this point assume the providers are
sending proper text and don't escape it.
Add an escape at the python level for jedi
For eng/ide/gnatstudio#393
Opening a buffer without a view leaves the responsibility to the
caller to close the buffer manually.
=> this is unsafe: either we are closing a buffer shared
somewhere else or forgetting to close it (= leaking it)
The solution is to always use Buffer_Holder.
from comments or strings.
We still keep the capability to change that in the future, in
case we want to provide some specifc completion providers for
strings and/or comments.
Closes eng/ide/ada_language_server#1111
The current completion was only inserting at the prefix or
replacing the prefix.
However, the LSP request can ask the client to delete more than
the prefix when using CompletionItem's textEdit.
Adapt test
Change-Id: If57ab2a09a3e569d1bf51fcfb4f6912afce11dfe
Add needed bits to support LSP incomplete completion. Incomplete
completion lists does not list all the possible results for the
prefix that trigerred completion, thus needing a new request when
typing a new character.
Add an automatic test.
Change-Id: Ib1add94ac9e808af8be05fb2adac2ad3330a3cba
Add support for the completionItem/resolve request, which allows
to compute the 'detail' and 'documentation' completion item fields
lazily, when selection the items in the completion window.
Change-Id: I37a4a9a6df8b0d0641da11c450bfa39532252b76
And fix the issue with aliases completion, where we were proposing
aliases for dotted names.
An existing test has been adapted to cover this case.
Change-Id: I633da75e01482f4ac2eb8d8488270b333479eeea
Aliases completion items are now available when LSP completion
is activated.
A new Get_Filter_Text function has been added to the completion API
for completion filtering: it avoids matching things in labels that
should not match (e.g: the '(alias)' suffix that is at the end of
alias completion items' labels).
An automatic test has been added.
Change-Id: I37e22cb774f6085b5d27c23c13a53580229a6e2a