Skip to content

Use a unique id for each file watcher registration - #5043

Open
crtschin wants to merge 1 commit into
haskell:masterfrom
crtschin:crtschin/unique-file-watcher-registration-ids
Open

Use a unique id for each file watcher registration#5043
crtschin wants to merge 1 commit into
haskell:masterfrom
crtschin:crtschin/unique-file-watcher-registration-ids

Conversation

@crtschin

Copy link
Copy Markdown
Collaborator

Fixes #4781.

Was hitting this on helix, and questioned why I keep needing to restart HLS to pick up dependency changes when switching branches for example. Found this PR, which explicitly names the issue of cabal files.

LSP doesn't indicate what should occur when a registration for the same id occurs. Some editors clobber, and others accumulate. This PR makes it so registrations are unique by their globs.

@crtschin
crtschin marked this pull request as ready for review August 14, 2026 20:35
@crtschin
crtschin requested a review from wz1000 as a code owner August 14, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Faulty registration of workspace/didChangeWatchedFiles

1 participant