Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix the file watcher#1983

Merged
bobbrow merged 1 commit into
mastermicrosoft/vscode-cpptools:masterfrom
bobbrow/filewatchermicrosoft/vscode-cpptools:bobbrow/filewatcherCopy head branch name to clipboard
May 11, 2018
Merged

Fix the file watcher#1983
bobbrow merged 1 commit into
mastermicrosoft/vscode-cpptools:masterfrom
bobbrow/filewatchermicrosoft/vscode-cpptools:bobbrow/filewatcherCopy head branch name to clipboard

Conversation

@bobbrow

@bobbrow bobbrow commented May 11, 2018

Copy link
Copy Markdown
Member

Something must have changed in VS Code with the file watcher API because we stopped getting file created/deleted events. This change fixes it.

// 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.

@bobbrow bobbrow merged commit 8f8ed52 into master May 11, 2018
@bobbrow bobbrow deleted the bobbrow/filewatcher branch May 11, 2018 19:33
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.