Detect changes by external tools while files are opened in editors
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Rust
- Stars
- 1.9k
- Forks
- 54
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 3
Description
Issue
In #303, we enabled this. In #310, we removed it again, because of an issue with VS Code.
Our suspicion: Our watcher picks up write events done by the daemon itself, which causes a full delete of the content, and then a restore.
To reproduce
- Be on a daemon version without ownership concept.
- Have a peer type into a file while you move your mouse out of VS Code.
- The watcher will pick up a full deletion + restore.
Possible solutions
Options:
- Have the watcher ignore file operations done by the daemon.
- Debounce the watcher.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing issues #303 and #310, then reproduce the delete-and-restore behavior with VS Code while a peer edits a file. Done means external edits are detected without daemon writes triggering a full deletion and restore; the issue leaves the choice between ignoring daemon operations and debouncing unresolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100