Skip to content
Discussion options

You must be logged in to vote

Hey @Serhioromano,

Interesting, it seems like the malformed input (i.e. 'B' which doesn't match any of the tokens) breaks the findLeafNodeAtOffset method 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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Serhioromano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants