Fix the file watcher by bobbrow · Pull Request #1983 · microsoft/vscode-cpptools
Navigation Menu
{{ message }}
microsoft / vscode-cpptools Public
- Notifications You must be signed in to change notification settings
- Fork 1.7k
Merged
Conversation
Copy link Copy Markdown
Member
bobbrow
commented
May 11, 2018
bobbrow
commented
Something must have changed in VS Code with the file watcher API because we stopped getting file created/deleted events. This change fixes it.
bobbrow commented May 11, 2018
| // WARNING: The default limit on Linux is 8k, so for big directories, this can cause file watching to fail. | ||
| this.rootPathFileWatcher = vscode.workspace.createFileSystemWatcher( | ||
| path.join(this.RootPath, "*"), | ||
| "**/*", |
Copy link Copy Markdown
Member Author
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note that we don't get file delete notifications for every file in a deleted folder, so we'll need to update the language server to take care of that specially.
sean-mcmanus approved these changes May 11, 2018
bobbrow
merged commit
8f8ed52
into
master
bobbrow
deleted the
bobbrow/filewatcher
branch
github-actions
bot
locked and limited conversation to collaborators
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.