Skip to content

x/tools/gopls: improve experience when editing a go.mod file by hand #42529

Closed
@stamblerre

Description

@stamblerre

Right now, we invalidate metadata on every keystroke, and for a go.mod file, that means that the metadata for the entire workspace is invalidated as you type. This triggers a go list on every keystroke, causing CPU usage to spike. We need to improve the UX of editing a go.mod file by hand, and that likely will be resolved by only invalidating metadata on go.mod saves, not edits.

#42266 might also be helpful, though I don't think it's the critical issue.

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