-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding/moving a directory in VSCode confuse the LSP #684
Comments
VSCode does not send a file system event when adding/moving a directory? |
It looks like a design problem: microsoft/language-server-protocol#742, microsoft/vscode#60813, microsoft/vscode#90746 We may need our own file system watcher, but it sounds too bad. |
|
Does the moved files trigger some notifications? |
microsoft/vscode#60813 (comment) They said they trigger folder change events |
It also says "instead of the files within". So we have to manually list files and process the removal and creation. And it requires a glob pattern "**/*" (watches everything). But this "everything" does not include external changes like git, according to microsoft/language-server-protocol#742 (comment) So I suppose we will have a file system watcher to watch files without such "optimizations" and also works for external changes. |
Moving a file triggers a file deletion followed by a file creation. Moving a directory does not trigger file events. But I expect them to be a list of file deletion, a list of file creation, and a move of the directory (a move event makes fixing directory references easier) --- just like what IntelliJ does. |
Yeah.... But I would ask for an option to disable it. It sounds like a disk killer. |
Yes... |
Very easy to reproduce.
The text was updated successfully, but these errors were encountered: