Closed
Description
To reproduce, simply open the $GOROOT/src
directory of current master.
- vscode-go version: 2020.7.820
- gopls version: golang.org/x/tools/[email protected] h1:SPpw/YOMhYKB5TjtZj77ddcTDQkpkUZtw4+0jtVYwro=
- go version: devel +6ba3e6a8c7
My config
"go.gopath": "~",
"go.toolsGopath": "~/.vscode/gopath",
"go.autocompleteUnimportedPackages": true, // https://golang.org/issue/31906
"go.useLanguageServer": true,
"go.enableCodeLens": {
"runtest": false,
"references": false
},
"[go]": {
"editor.snippetSuggestions": "none",
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
},
"gopls": { // https://github.com/golang/tools/blob/master/gopls/doc/settings.md
"staticcheck": true,
"hoverKind": "FullDocumentation",
"deepCompletion": true,
"completeUnimported": true, // https://golang.org/issue/31906
},
My workspace config
{
"go.alternateTools": {
"go": "~/go/bin/go"
},
"go.toolsGopath": "~/.vscode/godev",
"html.format.enable": false,
"editor.codeActionsOnSave": {
"source.organizeImports": false
},
"gopls": {
"analyses": {
"ST1003": false,
},
},
"go.languageServerFlags": [
"-rpc.trace"
],
}
Activity