Commit c17c69f
src/goModules: exclude vendor paths from inferGopath disable mechanism
Go extension disables `go.inferGopath` when operating in the module-aware mode.
The extension heuristically determines whether it's in module-aware mode or not by
checking the presence of a `go.mod` file in the workspace. Vendored packages though
confuses this heuristics and can incorrectly conclude and disable the feature.
Exclude files from the vendor paths in this decision making.
Fixes #301
Change-Id: I20f711c34095eea95be74e97b4d270eb075053a3
GitHub-Last-Rev: 8bbeedd
GitHub-Pull-Request: #754
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/260658
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
Trust: Suzy Mueller <suzmue@golang.org>1 parent 0cdccf1 commit c17c69f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments