Commit d1526fa
extension/src/goLint: adding
This change sets path mode to abs (supported from golangci-lint v2.1) when running golangci-lint v2.
When `run.relative-path-mode` is set to `cfg` (which is the default), the file path in the linter output is relative to the config file, while vscode-go treats it as relative to the linted file. That makes the file path invalid, which prevents diagnostic errors from showing.
The absolute output path is the efficient way to fix this problem.
Fixes #3750
Change-Id: I77bc8a54062bad094128a14d764db94198379ee9
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/664877
Reviewed-by: Hongxiang Jiang <[email protected]>
Reviewed-by: Madeline Kalil <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
kokoro-CI: kokoro <[email protected]>--path-mode=abs flag for golangci-lint v21 parent 5e6ba19 commit d1526fa
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
168 | 172 | | |
169 | 173 | | |
170 | 174 | | |
| |||
0 commit comments