Skip to content

x/tools/gopls: fillreturns modifies existing returns #38707

@stamblerre

Description

@stamblerre

I added a return value to a function, and observed that hitting save overrode the existing values with nils. (Repro in the file golang.org/x/tools/internal/lsp/source/types_format.go`.)

Screen Shot 2020-04-27 at 3 44 54 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeToolsThis 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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions