Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
douglascamata opened this issue May 9, 2018 · 2 comments

Comments

@douglascamata
Copy link

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
Copy link
Owner

castwide commented May 9, 2018

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
Copy link
Owner

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 microsoft/vscode#21611.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants