Skip to content

Fix: File watcher stops triggering after first save in VS Code and other IDEs - #586

Open
aniket866 wants to merge 2 commits into
microcks:masterfrom
aniket866:fix/debounce-watcher-imports
Open

aniket866 wants to merge 2 commits into
microcks:masterfrom
aniket866:fix/debounce-watcher-imports

Conversation

@aniket866

@aniket866 aniket866 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

The watcher now debounces file events for 300 ms, watches parent directories to catch atomic replacements, and processes imports through one worker. Tests cover write bursts, atomic replacement, and changes that arrive during an import.

Verification: go fmt ./... completed, and go test -count=3 ./pkg/watcher passed. go test ./... has Windows-specific failures in existing cmd path-fixture tests and a pkg/output path-escaping test.

AI disclosure: Chatgpt is used to analyze related files and implement changes.

Closes #297

Signed-off-by: aniket866 <iamaniketkumarmaner@gmail.com>
Signed-off-by: aniket866 <iamaniketkumarmaner@gmail.com>

This branch was successfully deployed

1 active deployment
Build — 0bc30920 Deployed Oct 15, 2026 by aniket866 via build-verify-package #807
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.

Watcher File Change Events Trigger Unbounded Concurrent Reimports, without any Debounce or Limit

1 participant