Skip to content

Autocompletion for sentences with validation error #1623

Answered by msujew
durianwaffle asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @durianwaffle,

How to show the same autocompletion lists using the two functions?

I'm not entirely sure what you mean by that. getCompletion is the entry point into the completion algorithm - since we only get the parameters from the language client, it's all that we have to perform the completion. completionFor is way deeper into the algorithm, at a point where we've already identified what our next grammar element will be - both of these methods serve entirely different purposes.

Now if I type ctrl+space in '()' I will see RangeError: Maximum call stack size exceeded error.

Does that happen when using the default completion provider or in your own implementation?

How to show au…

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@durianwaffle
Comment options

@cdietrich
Comment options

@durianwaffle
Comment options

@cdietrich
Comment options

@durianwaffle
Comment options

Answer selected by durianwaffle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants