No suggestions in autocomplete #777
Answered
by
msujew
Serhioromano
asked this question in
Q&A
|
I have managed to implement langium into my VS Code extension. Now I struggle with This is simplified version of file. But when I type in document When I start type BOOL it immediately appear but other not. Why? |
Answered by
msujew
Nov 24, 2022
Replies: 1 comment
|
Hey @Serhioromano, Interesting, it seems like the malformed input (i.e. 'B' which doesn't match any of the tokens) breaks the I've created #778 to track this. |
0 replies
Answer selected by
Serhioromano
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @Serhioromano,
Interesting, it seems like the malformed input (i.e. 'B' which doesn't match any of the tokens) breaks the
findLeafNodeAtOffsetmethod and makes it return undefined. That will then result in no completion results:https://github.com/langium/langium/blob/a18ebca4ce58391d1d7bbb7dc1509b6ec597bb23/packages/langium/src/lsp/completion/completion-provider.ts#L73-L79
I've created #778 to track this.