-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Files watcher exclude - do not ignore changes to the node_modules folder itself. #125801
Files watcher exclude - do not ignore changes to the node_modules folder itself. #125801
Conversation
Friendly ping @bpasero |
What issue does this address? |
updated |
@@ -239,7 +239,7 @@ configurationRegistry.registerConfiguration({ | |||
}, | |||
'files.watcherExclude': { | |||
'type': 'object', | |||
'default': isWindows /* https://github.com/microsoft/vscode/issues/23954 */ ? { '**/.git/objects/**': true, '**/.git/subtree-cache/**': true, '**/node_modules/*/**': true, '**/.hg/store/**': true } : { '**/.git/objects/**': true, '**/.git/subtree-cache/**': true, '**/node_modules/**': true, '**/.hg/store/**': true }, | |||
'default': isWindows /* https://github.com/microsoft/vscode/issues/23954 */ ? { '**/.git/objects/**': true, '**/.git/subtree-cache/**': true, '**/node_modules/*/**': true, '**/.hg/store/**': true } : { '**/.git/objects/**': true, '**/.git/subtree-cache/**': true, '**/node_modules/**/*': true, '**/.hg/store/**': true }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aaaaash any reason we wouldn't just pick the exact same pattern as on Windows? From my testing, the advantage of '**/node_modules/*/**'
over '**/node_modules/**/*'
seems to be that you would see changes to top level folders in the node_modules
folder, but nothing deeper. So essentially the explorer refreshes nicely on operations such as yarn add <module>
.
With your suggested pattern, I only see node_modules
folder appearing and hiding, but not changes inside the folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping @Aaaaash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late reply, you are right, so we can use the same pattern on Windows and Linux/macOS ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think so, can you update the PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
d8e7cc0
to
814c156
Compare
Thanks 👍 |
This PR fixes #125886
Glob online tester