-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TriggerKind is always TriggerCharacter if char is on completionTriggerChars list #794
Comments
@ghentschke Can you please have a look? |
First problem is complicated because by design IContentAssistProcessor haven't access to ContentAssistEvent, so don't know if it's "auto" or "on-demand". PDT have ugly workaround via separate ContentAssistant implementation. To fix second problem, should be enough to drop LSPEclipseUtils.toCompletionParams#237 line. |
I'll check that and provide a PR. |
I am not sure if a line drop is right in this situation. I think an empty String as
@zulus What is your expected behavior here? Does |
triggerCharacter won't be send via json rpc in case of TriggerKind.Invoked: "context":{"triggerKind":1} fixes eclipse-lsp4e#794
triggerCharacter won't be send via json rpc in case of TriggerKind.Invoked: "context":{"triggerKind":1} fixes eclipse-lsp4e#794
@zulus , @ghentschke , any chance you could have time to improve the eclipse platform so that LSP4E can reliably know if the content assist has been manually invoked or automatically triggered? |
* Fix undefined triggerCharacter for TriggerKind.Invoked triggerCharacter won't be send via json rpc in case of TriggerKind.Invoked: "context":{"triggerKind":1} fixes #794 * Use CompletionContext single argument constructor
Fixed by #798 |
@zulus can you please open a new issue for this topic. |
Done, see #799
I've added extra info to #799
Thx for second problem PR, VUE component inside WWD have now much better auto-completion |
During work eclipse-wildwebdeveloper/wildwebdeveloper#1316 I realized that LSP4E ignore way how code assist is invoked, and always mark completion computation as TriggerCharacter if character under cursor is inside completionTriggerChars
Also triggerCharacter is always pushed to server, which is also wrong. For TriggerKind.Invoked should be undefined
Bug has been introduced via 7c770c3
The text was updated successfully, but these errors were encountered: