-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Test: new default file watcher #133753
Comments
I only see |
So does this mean I could add a ton of paths to this setting that are not opened in VS Code and nsfw will still watch them regardless? Could I add |
@TylerLeonhardt you should see
No, we only allow paths that are inside the workspace: vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.ts Lines 132 to 144 in 24b3b58
|
Refs: #132483
Complexity: 5
Create Issue
The file watcher (
vscode-nsfw
) that was previously only used in multi-root workspaces is now enabled by default on all platforms even when opening a single folder. On top of that, the watcher service that leveraged it in VSCode was rewritten.Setup: best to test this on a larger code base (like VSCode itself) and doing changes not only in root but also in deep hierarchies. In order to diagnose issues you can:
code-insiders --verbose
Console
by puttingnsfw
into the filternsfw
library and a normalised event signalling the event that is actually being sent to VSCodeIMPORTANT: over the years we have built a lot of measures to workaround missing file events making it actually a bit harder to test the functionality of these events. As such:
Testing Events
Testing Robustness
npm install
orgit
operation) - monitor devtools output for information in case it stops workingfs.inotify.max_user_watches
(instructions), restart and open a large folder with VSCode and verify you see a warning notification telling you how to increase that limitTesting New Settings
files.watcherInclude
setting to enable it for watching and verify that worksfiles.legacyWatcher
. if you run with--verbose
and search for "watcher", the name of the watcher will be printed (chokidar
for macOS, Linux andC#
for Windows)The text was updated successfully, but these errors were encountered: