You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 23, 2018. It is now read-only.
On typing retur in a function, I am offered no autocomplete suggestions. I am okay with this.
On typing return in a function, I am offered many autocomplete suggestions. Many of them do not contain all the letters r, e, t, u, r, and n. None of them are return. I am not okay with this because (unless I am actually going to return something) I have to interrupt normal typing to dismiss the suggestions.
Steps to Reproduce
Ensure you are in a project where 'retur' would not form part of an autocomplete suggestion.
Within a function, in a Go file, on a clean line, type retur.
Type n.
Expected Behavior
To see return in the list of autocomplete suggestions
Actual Behavior
I see lots of other things instead.
The text was updated successfully, but these errors were encountered:
@crantokautocomplete-plus has multiple providers; autocomplete-go is not the only one. Each provider (including ac+'s bulit-in provider) can provide their own suggestions. To have gocode return suggestions for builtins, run gocode set propose-builtins true.
The setting Suppress The Provider Built-In To autocomplete-plus also affects the suggestions you see. autocomplete-plus by default provides suggestions based on words in other files. Check the mentioned setting if you only want to see suggestions provided by gocode (so actually related to your code) and ignore the rest.
All the suggestions I see having typed return are provided by autocomplete-go.
Additionally, if I use arrow keys to select and accept one of those suggestions, it is appended to return without a space, so I get something like returnMyVar.
I've just checked my autocomplete-go settings and they are suppressing the built-in provider. I had a look in config.cson and there is no entry for autocomplete-go, so I assume that I'm using the default settings.
I am using autocomplete-go version 1.1.1
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
retur
in a function, I am offered no autocomplete suggestions. I am okay with this.return
in a function, I am offered many autocomplete suggestions. Many of them do not contain all the letters r, e, t, u, r, and n. None of them arereturn
. I am not okay with this because (unless I am actually going to return something) I have to interrupt normal typing to dismiss the suggestions.Steps to Reproduce
retur
.n
.Expected Behavior
To see
return
in the list of autocomplete suggestionsActual Behavior
I see lots of other things instead.
The text was updated successfully, but these errors were encountered: