Custom completion provider - Prevent all words in the document matching the typed text as suggestions #1866
-
I'm creating a custom completion provider for my DSL, and I'm extending DefaultCompletionProvider. It's working right for properties, but not yet for references. When implementing the completion for references, I'm tying to restrict the completion suggestions to specific entries only. I can see that the candidates are correctly filtered from my scope provider, and I can also see when 0 matches are found. Unfortunately, when there are no matches, I keep getting completion suggestions from all existing words in the document. How can this default / fall-back be prevented? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @shutterfreak, this is not Langium behavior (as it is correctly returning an empty result), see the |
Beta Was this translation helpful? Give feedback.
Hey @shutterfreak,
this is not Langium behavior (as it is correctly returning an empty result), see the
editor.wordBasedSuggestions
setting of VS Code: