Autocomplete prioritizes suggestions over snippets
ryanolsonx opened this issue · 1 comments
ryanolsonx commented
Hi,
So I believe that snippets should go first in priority. The default priority for language client is 2 (the same as snippets). In that case, snippets are not always first.
This can definitely be configurable. Also, I'm willing to provide a PR with the implementation.
The key is overriding the suggestionPriority in provideAutocomplete
.
provideAutocomplete() {
return { ...super.provideAutocomplete(), suggestionPriority: 1 };
}
They did this same thing in ide-flowtype (they made theirs configurable). https://github.com/flowtype/ide-flowtype/blob/master/lib/main.js#L122
ryanolsonx commented
PR: #129