Skip to content

goimports missing from Install/Update Tools #3981

@rittneje

Description

@rittneje

Reopening #3677.

At the time, it was claimed that setting go.formatTool to "goimports" really caused it to format via gopls. However, the current docs dispute this.

Specifies the tool for formatting Go code. The default is default, which uses the language server gopls as formatting provider. To configure gopls's formatting, see the 'gopls.formatting' settings. When a specific tool (e.g., gofmt, goimports) is selected, the extension will run it instead.

And indeed, deleting the goimports command from ${go.toolsGopath}/bin causes it to open an error dialog.

Image

Please fix the "Go: Install/Update Tools" dialog to also consider go.formatTool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions