Skip to content

GlobPattern requires case-sensitive drive letters on Windows #104387

@stamblerre

Description

@stamblerre

I am using the file watching API via the Language Server Protocol for the Go language server.

It seems that the API requires the drive letter in the GlobPattern to always be lowercased. We have noticed that the rootURI in the language client's initialize request always has a lowercase drive letter on Windows, but due to underlying tooling that preserves case, we do not always have lowercased drive letters in the server itself.

When the server sends a file watch request for a GlobPattern with an uppercased drive letter, we do not get any notifications. When we lowercase the drive letter, we do receive notifications.

Is this expected behavior? It seems like this should work no matter the case of the drive letter, especially since VS Code is itself changing the letters to be lowercase.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions