vscode-go icon indicating copy to clipboard operation
vscode-go copied to clipboard

formatter: support goimports-reviser, passing in file path

Open iacore opened this issue 1 month ago • 16 comments

https://github.com/golang/vscode-go/blob/36d95e2eab1c68be2445798f6a4ff76601af4b8c/extension/src/language/legacy/goFormat.ts#L50-L52

    "go.formatTool": "custom",
    "go.formatFlags": [
        "-format",
        "-rm-unused",
        "FILENAME, supposedly",
    ],
    "go.alternateTools": {
        "customFormatter": "goimports-reviser",
    },

iacore avatar Oct 28 '25 01:10 iacore