-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Opening a .js file when node_modules is present causes explosion in number of watchers #49474
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.68.0. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
Probably caused by TypeScript and thus #46351. It is annoying that this issue is not getting attention to be honest. |
Maybe this helps you @MetRonnie : https://www.typescriptlang.org/docs/handbook/configuring-watch.html |
@sheetalkamat Following up on #46351, would it be possible to either:
|
Thanks! I have had some success with // <project-root>/jsconfig.json
"watchOptions": {
"excludeFiles": ["**/node_modules"]
} seems to cut the number of watchers down by half. (Note: it has to be This suggestion also seems to have a similar effect: // <project-root>/.vscode/settings.json
"typescript.disableAutomaticTypeAcquisition": true (however, combining the two does not seem to be any better than only choosing one) |
Fyi: Recent upgrades seems to have improved my instances out of inotify problems microsoft/vscode#151947 which was probably related to this issue |
#off-topic/irrelavent. Do tsserver or vscode have any preferences to exclude a directory from code intelligence in single workspace. |
Duplicate of #46351 |
Issue Type: Bug
node_modules
folder) with no tabs opennode_modules
)As a result I have started to get
ENOSPC
errors about reaching the Inotify limit, seems to be since upgrading to VSCode 1.67 (I'm not in control of the version).This does not happen if you delete the
node_modules
folder.I have the default
**/node_modules/*/**
infiles.watcherExclude
.VS Code version: Code 1.67.2 (c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5, 2022-05-17T18:23:40.286Z)
OS version: Linux x64 3.10.0-1160.66.1.el7.x86_64
Restricted Mode: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
The text was updated successfully, but these errors were encountered: