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
extension/src/goLint: enabled to override path-mode flag
Currently, users can't override or disable any flags added by vscode-go. However, in some environments, the `path-mode` flag needs to be overridden. (#3750 (comment))
The flags related to the output format shouldn't be changed so that vscode-go can parse them correctly. Thus, I enable overriding the `path-mode` flag.
Fixes#3750
Change-Id: I6258c7054ef91137c13d566744ac01a33caf0bd4
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/667735
kokoro-CI: kokoro <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Carlos Amedee <[email protected]>
Reviewed-by: Hongxiang Jiang <[email protected]>
Auto-Submit: Hongxiang Jiang <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ diff between options locally discovered and options available for download.
13
13
* Added a new lint tool, `golangci-lint-v2`. It's added as an installable tool, so you can install it via the `Go: Install/Update Tools` command.
14
14
* You can switch v1 and v2 per workspace by using `golangci-lint` and `golangci-lint-v2` option. You must keep the `golangci-lint` executable version on your machine to v1 for that.
15
15
* You can also use `golangci-lint` executable updated to v2. Just keep using the `golangci-lint` option for that.
16
+
* The `path-mode` flag set by vscode-go can be overridden by the`go.lintFlags` option.
16
17
* Looking for a way to format your code with golangci-lint v2 on VS Code? Check the [golangci-lint documentation](https://golangci-lint.run/welcome/integrations/#visual-studio-code).
0 commit comments