Skip to content

x/tools/gopls: use RelativePatterns for file watching if RelativePatternSupport is available #64763

Closed
@findleyr

Description

@findleyr

In order to fix problems with Windows paths, we should use RelativePatterns if they are supported:
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#relativePattern

Because these patterns allow specifying a directory URI, they are a better solution for watching absolute directories, and don't suffer from windows drive casing issues.

See microsoft/vscode#104387 for more background.

Metadata

Metadata

Assignees

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