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 Jul 15, 2023. It is now read-only.
Autocompletion inside of import blocks isn't something that we've considered supporting gopls. Filed an issue upstream for this (golang/go#35877). In the meantime, the best approach here would be rely on the import on save behavior. The import "fmt" should be added for you automatically on save, based on your settings.
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Gocode -v
orcode-insiders -v
to get version of VS Code or VS Code Insidersgo env GOOS GOARCH
to get the operating system and processor arhcitecture detailsShare the Go related settings you have added/edited
{
"go.useLanguageServer": true,
"[go]": {
"editor.formatOnSave": true,
"editor.snippetSuggestions": "top",
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"gopls": {
"usePlaceholders": true,
"enhancedHover": true,
"completeUnimported": true
},
"go.languageServerExperimentalFeatures": {
"autoComplete": false,
"rename": true,
"goToDefinition": true,
"hover": true,
"signatureHelp": true,
"goToTypeDefinition": true,
"goToImplementation": true,
"documentSymbols": true,
"workspaceSymbols": true,
"findReferences": true,
"diagnostics": false
},
"go.autocompleteUnimportedPackages": true
}
Describe the bug
the editor cannot show import list automatically
Hoping your reply.
The text was updated successfully, but these errors were encountered: