[Completion] Support for triggers chars
Closed this issue · 8 comments
Use ServerCapabilities#getCompletionProvider#getCompletionOptions#getTriggerCharacters to initialize completion processor to support triggers chars.
+1. However it may also require some code to adopt triggerChars this in the Generic Editor as well.
This depends on https://bugs.eclipse.org/bugs/show_bug.cgi?id=505632
And a good integration also requires https://bugs.eclipse.org/bugs/show_bug.cgi?id=505635
@angelozerr I pushed a change that should support it. However, I didn't manage to find a working language server that uses it. Do you have an example to suggest? If not, I'll probably just close this issue.
I'd like to, but there's TypeFox/ls-api#63 blocking good integration of JSON server.
Autoactivation works ok but only after first manual activation (ctrl+space). Before that LSPDocumentInfo isn't computed for LSContentAssistProcessor.