Skip to content

jump to define wrong #1070

@Kurt-Shiwz

Description

@Kurt-Shiwz

os: macos 11.1 (20C69)
vscode:1.52.1
go: go version go1.15.6 darwin/amd64

I have two project, same conf, use go mod, and run go mod vendor(i like to see the pkg files in left explorer, if dont run go mod vendor cnat see it on explorer), but jump to define is different, one jump to ./vender/... , another jump to $HOME/go/pkg/mod/...
i want to know why this happend?

"go.useLanguageServer": true,
"go.goroot": "/usr/local/opt/go/libexec",
"go.toolsGopath": "/Users/${env:USER}/go",
"go.docsTool": "guru",
"go.formatTool": "goimports",
// "go.formatFlags": [
//     "-s"
// ],
"go.lintOnSave": "off",
"go.languageServerExperimentalFeatures": {
    "diagnostics": true,
    "documentLink": true
},
"go.toolsEnvVars": {
    "GO111MODULE": "auto"
},
"[go]": {
    "editor.snippetSuggestions": "top",
    "editor.codeActionsOnSave": {
        "source.organizeImports": true
    },
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions