castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
425 stars 24 forks source link

When VSCode gets the autocomplete response for Solargraph it erases the simple word autocompletion #51

Closed douglascamata closed 5 years ago

douglascamata commented 6 years ago

This extension have a really weird behaviour when it comes to autocompleting from the current dictionary of words (usually the active file) and from the solargraph gem itself.

It seems like whenever we get a response from the solargraph server with extension it automatically removes all the dictionary words from the suggestions.

Example:

foo

foo_string = "string"

# typing...
fo # trigger autocomplete here!

You won't see foo when you trigger the autocomplete there at the last line... you will only see foo_string. 😞

castwide commented 6 years ago

I'll have to look into this. I thought setting editor.wordBasedSuggestions to true would get suggestions from both providers, but it doesn't have any effect.

castwide commented 6 years ago

It looks like this is intended behavior in VSCode. Word-based suggestions don't get triggered when a provider with a higher score provides results. There's some discussion of the issue, including the possibility of an option to include both, at https://github.com/Microsoft/vscode/issues/21611.