Customisation of Code Completion #712
Unanswered
markusvoelter
asked this question in
Q&A
Replies: 2 comments 19 replies
-
Hi Markus! AFAICT the default completion provider should take care of filtering proposals to match the current prefix: Can you confirm this from the editor behavior? |
Beta Was this translation helpful? Give feedback.
19 replies
-
@markusvoelter Is it possible to share some snippets of your code? I am also playing with the CompletionProvider... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on customizing code completion for my language. In one particular parser rule (AST type) I need to code complete a string into an external configuration (think: XML file). I got the fundamentals to work by writing my own completion provider and extending the default one. I overwrote the completeForRule method with my own logic and it basically works. One question
however:
Let's assume the completions (based on my external XML file) are ABC, AXX and DEF. If I press Ctrl-Space when the user has already written A, then I'd assume to only get ABC and AXX as proposals. Is this behavior intended to be default (ie, handled outside my completeForRule method) or should I implement this myself? If the latter, it seems that the completeForRule method doesn't get enough arguments; prefix or something is missing.
What do I do? @msujew, is your improvement of the code completion provider addressing this (@montymxb hinted at that)?
Beta Was this translation helpful? Give feedback.
All reactions