Skip to content

x/tools/gopls: incorrect edits from the unused variable quickfix #54373

Closed
@findleyr

Description

@findleyr

Noticed this while preparing for the [email protected] release.

The new unused variable quickfix added in #48975 seems to compute over-large edits in some cases.

For example, given the following function:
image

The quick fix produces the following end-state:
image

I think this needs a bit more work before we enable this quick-fix by default.

CC @rentziass for awareness. This is not a big deal, but I probably won't promote this new feature in the v0.9.2 release notes. We'll promote it for v0.10.0 once we've worked on it a bit more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions