Skip to content

Pass file to format to custom formatter #1603

Open
@mrmeku

Description

@mrmeku

Describe the bug

Currently the vscode-go extension has code paths to support running a custom go formatting tool. However, those code paths stop short of actually passing the file that should be formatted as an argument to the formatter. This makes it so that a custom formatting tool cannot actually be run since it has no way of knowing what file it should format

Steps to reproduce the behavior:

  1. Set "go.formatTool" to a path to a custom tool
  2. Attempt to format a go file
  3. See that that the custom tool is not passed an argument of a file to format

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions