Skip to content

x/tools/gopls: diagnostics not cleared after configuration change #56158

Closed as not planned
@findleyr

Description

@findleyr

When gopls receives a major configuration change (one that requires reloading), it does not explicitly purge diagnostics for all files. As a result, if the configuration change causes a file to no longer be considered part of the workspace, or if under the new configuration the file does not have diagnostics, gopls will not re-publish empty diagnostics.

Low priority, as configuration changes are rare, but this is wrong.

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.gopls/metadataIssues related to metadata loading in gopls

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions