Fix the file watcher by bobbrow · Pull Request #1983 · microsoft/vscode-cpptools

Expand Up @@ -450,7 +450,7 @@ class DefaultClient implements Client { if (this.rootFolder) { // 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, "*"), "**/*",

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.

false /*ignoreCreateEvents*/, true /*ignoreChangeEvents*/, false /*ignoreDeleteEvents*/); Expand Down