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
I'm in a multi root workspace with many go packages
I'm trying to point my custom formatter at ./bin/golangci-lint. This is located within the workspace root
The formatter fails with ${workspaceFolder:root}/bin/golangci-lint is not found.
If i remove the scoping: "customFormatter": "${workspaceFolder}/bin/golangci-lint", then the formatter fails with <path-to-current-folder>/bin/golangci-lint is not found.. The substitution works as expected but this changes for files in each workspace folder so its not really a usable config
Steps to reproduce the behavior:
Create a vscode workspace
Set the workspace settings from above
Save a golang file to trigger the formatter
Screenshots or recordings
N/A
The text was updated successfully, but these errors were encountered:
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.go version go1.22.3 darwin/arm64
gopls -v version
to get version of Gopls from the VS Code integrated terminal.golang.org/x/tools/gopls v0.15.3
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.1.89.1 dc96b837cf6bb4af9cd736aa3af08cf8279f7685 arm64
v0.41.4
Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
Describe the bug
${workspaceFolder:root}/bin/golangci-lint is not found.
"customFormatter": "${workspaceFolder}/bin/golangci-lint",
then the formatter fails with<path-to-current-folder>/bin/golangci-lint is not found.
. The substitution works as expected but this changes for files in each workspace folder so its not really a usable configSteps to reproduce the behavior:
Screenshots or recordings
The text was updated successfully, but these errors were encountered: