Files watcher exclude - do not ignore changes to the node_modules folder itself.#125801
Conversation
|
Friendly ping @bpasero |
|
What issue does this address? |
|
updated |
| '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.
@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.
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.
Yeah I think so, can you update the PR?
d8e7cc0 to
814c156
Compare
|
Thanks 👍 |
This PR fixes #125886
Glob online tester