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
x/tools/gopls: missing function literal suggestion #41123
Comments
The snippet suggestion you see can be disabled by adding the following setting: "[go]": {
"editor.snippetSuggestions": "none",
} I can't reproduce the lack of a |
I was able to reproduce the missing completion with: package main
func haha(fn func(value int)) {
}
func _() {
haha(func<>)
if true {
}
} We think "<>" is within a function literal, so we don't continue up to infer an expected type of |
I used "editor.snippetSuggestions": "none" but don't work..... here is my setting is has wrong? { |
I couldn't reproduce the problem with your above example either. (Also please also include the text of examples so it is easy for others to copy and paste.) Can you simplify your config to the minimal config which reproduces the issue? Perhaps you can find the problem that way, assuming it is something in your config. |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
hope ↓
The text was updated successfully, but these errors were encountered: