René's URL Explorer Experiment


Title: VSCode extension listens to file changes in node_modules, causing too many active listeners · Issue #66924 · angular/angular · GitHub

Open Graph Title: VSCode extension listens to file changes in node_modules, causing too many active listeners · Issue #66924 · angular/angular

X Title: VSCode extension listens to file changes in node_modules, causing too many active listeners · Issue #66924 · angular/angular

Description: Is this a bug report or a feature request? Bug Report Feature Request Please provide the steps to reproduce the issue [Bug Report only] I recently ran into the issue, that I was unable to start dev servers anymore, due to Error: ENOSPC: ...

Open Graph Description: Is this a bug report or a feature request? Bug Report Feature Request Please provide the steps to reproduce the issue [Bug Report only] I recently ran into the issue, that I was unable to start dev...

X Description: Is this a bug report or a feature request? Bug Report Feature Request Please provide the steps to reproduce the issue [Bug Report only] I recently ran into the issue, that I was unable to start dev...

Opengraph URL: https://github.com/angular/angular/issues/66924

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"VSCode extension listens to file changes in node_modules, causing too many active listeners","articleBody":"### Is this a bug report or a feature request?\n\n- [x] Bug Report\n- [ ] Feature Request\n\n### Please provide the steps to reproduce the issue [Bug Report only]\n\nI recently ran into the issue, that I was unable to start dev servers anymore, due to `Error: ENOSPC: System limit for number of file watchers reached, watch '...'`.\n\nWhile investigating the issue using `strace -f -e inotify_add_watch code 2>&1`, I noticed that extremely many file watches are registered on boot of VSCode. With the help of Gemini, I've traced this further down using an eBPF script:\n\n```bash\nsudo bpftrace -e '                             \n/* 1. Catch specific inotify calls with clamped path reading */\ntracepoint:syscalls:sys_enter_inotify_add_watch {\n    // Clamp the string read to 64 bytes to stay within verifier limits\n    $path = str(args->pathname, 64); \n    \n    if (strcontains($path, \"node_modules\")) {\n        printf(\"\\n[WATCH] PID: %d (%s) -> %s\\n\", pid, comm, $path);\n    }\n}\n\n/* 2. Catch process executions with their arguments */\ntracepoint:syscalls:sys_enter_execve {\n    printf(\"[EXEC] PID: %d | PPID: %d | CMD: \", pid, curtask->real_parent->pid);\n    join(args->argv);\n}'\n```\n\n(clamping the path to 64 was enough for me, you may need to increase the limit.\n\nBy filtering an ungodly amount of logs, I did find those three very suspicious logs:\n\n```\n[EXEC] PID: 212280 | PPID: 211648 | CMD: /usr/share/code/code /home/shayden/.vscode/extensions/nrwl.angular-console-18.85.2/nxls/main.js --node-ipc --clientProcessId=211648\n\n[...]\n\n[WATCH] PID: 212280 (notify-rs inoti) -> /path/to/project/node_modules\n[WATCH] PID: 212280 (notify-rs inoti) -> /path/to/project/node_modules./..\n[WATCH] PID: 212280 (notify-rs inoti) -> /path/to/project/node_modules/...\n[WATCH] PID: 212280 (notify-rs inoti) -> /path/to/project/node_modules/...\n[WATCH] PID: 212280 (notify-rs inoti) -> /path/to/project/node_modules/...\n[...]\n\n\n[EXEC] PID: 212881 | PPID: 211648 | CMD: /usr/share/code/code /home/shayden/.vscode/extensions/angular.ng-template-21.1.1/server --logToConsole --ngProbeLocations /home/shayden/.vscode/extensions/angular.ng-template-21.1.1/path/to/project --includeAutomaticOptionalChainCompletions --includeCompletionsWithSnippetText --includeCompletionsForModuleExports true --angularCoreVersion 21.0.9 --tsdk node_modules/typescript/lib --tsProbeLocations /home/shayden/.vscode/extensions/angular.ng-template-21.1.1/path/to/project --node-ipc\n\n[...]\n\n[WATCH] PID: 212881 (code) -> /path/to/project/node_modules\n[WATCH] PID: 212881 (code) -> /path/to/project/node_modules/...\n[WATCH] PID: 212881 (code) -> /path/to/project/node_modules/...\n[WATCH] PID: 212881 (code) -> /path/to/project/node_modules/...\n[...]\n\n[EXEC] PID: 212881 | PPID: 211648 | CMD: /usr/share/code/code /home/shayden/.vscode/extensions/angular.ng-template-21.1.1/server --logToConsole --ngProbeLocations /home/shayden/.vscode/extensions/angular.ng-template-21.1.1/path/to/project --includeAutomaticOptionalChainCompletions --includeCompletionsWithSnippetText --includeCompletionsForModuleExports true --angularCoreVersion 21.0.9 --tsdk node_modules/typescript/lib --tsProbeLocations /home/shayden/.vscode/extensions/angular.ng-template-21.1.1/path/to/project --node-ipc\n\n[...]\n\n[WATCH] PID: 212881 (code) -> /path/to/project/node_modules\n[WATCH] PID: 212881 (code) -> /path/to/project/node_modules/...\n[WATCH] PID: 212881 (code) -> /path/to/project/node_modules/...\n[WATCH] PID: 212881 (code) -> /path/to/project/node_modules/...\n[...]\n```\n\n(obviously, by monitoring the node_modules, all files in that folder will be watched, I've truncated the output a lot here)\n\nThe last `[EXEC]` log points towards the the Angular language server extension.\n\nSo to answer the question: To reproduce the issue, just open any project containing `node_module`s while the above eBPF tracer is running.\n\n### Please provide the expected behavior vs the actual behavior you encountered [Bug Report only]\n\nThe Angular lang server extension should not watch for file changes in `node_modules`. If you really need to listen for changes of dependencies, maybe just react to changes to `package.json`/`package-lock.json`/`pnpm-lock.yml`/etc.\n\n### Please provide a screenshot if possible [Bug Report only]\n\n_No response_\n\n### Please provide the exception or error you saw [Bug Report only]\n\n```true\n\n```\n\n### Description [Feature Request only]\n\n_No response_\n\n### Proposed solution [Feature Request only]\n\n_No response_\n\n### Alternatives considered [Feature Request only]\n\n_No response_","author":{"url":"https://github.com/Simon-Hayden-Dev","@type":"Person","name":"Simon-Hayden-Dev"},"datePublished":"2026-02-05T11:19:30Z","url":"https://github.com/angular/angular/issues/66924"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:30066d48-af4e-5fe9-f320-8b75360472c9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB360:215B92:2FE97F1:3FD43A8:6B01E2E6
html-safe-nonce62aac469633aed078ba041e717ca5d5d0a91501d489ce7000d7c94339a523d2c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzYwOjIxNUI5MjoyRkU5N0YxOjNGRDQzQTg6NkIwMUUyRTYiLCJ2aXNpdG9yX2lkIjoiMTA1MDQwOTYzNTAwMzA5NzgzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac35018462fd12932f7ca31734b6fc94151c8a22a318bb867ef6372b0eb050b54f
hovercard-subject-tagissue:3901049104
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/66924/issue_layout
twitter:imagehttps://opengraph.githubassets.com/90672660de3de2360f6e0bdf4e95b45b7e5e3d0c65f86f96dd56466693b99c7f/angular/angular/issues/66924
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/90672660de3de2360f6e0bdf4e95b45b7e5e3d0c65f86f96dd56466693b99c7f/angular/angular/issues/66924
og:image:altIs this a bug report or a feature request? Bug Report Feature Request Please provide the steps to reproduce the issue [Bug Report only] I recently ran into the issue, that I was unable to start dev...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSimon-Hayden-Dev
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/66924#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F66924
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F66924
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/66924
Reloadhttps://github.com/angular/angular/issues/66924
Reloadhttps://github.com/angular/angular/issues/66924
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests143 (143)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/66924
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/66924
VSCode extension listens to file changes in node_modules, causing too many active listenershttps://github.com/angular/angular/issues/66924#top
https://github.com/Simon-Hayden-Dev
Simon-Hayden-Devhttps://github.com/Simon-Hayden-Dev
on Feb 5, 2026https://github.com/angular/angular/issues/66924#issue-3901049104
Simon-Hayden-Devhttps://github.com/Simon-Hayden-Dev
on Feb 5, 2026https://github.com/angular/angular/issues/66924#event-22555593510
https://github.com/Simon-Hayden-Dev
Simon-Hayden-Devhttps://github.com/Simon-Hayden-Dev
on Feb 5, 2026https://github.com/angular/angular/issues/66924#issuecomment-3852971910
nrwl/nx-console#2468 (comment)https://github.com/nrwl/nx-console/issues/2468#issuecomment-3852868337
https://github.com/atscott
atscotthttps://github.com/atscott
on Feb 5, 2026https://github.com/angular/angular/issues/66924#issuecomment-3854131120
#66668https://github.com/angular/angular/pull/66668
atscotthttps://github.com/atscott
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 5, 2026https://github.com/angular/angular/issues/66924#event-22560910841
https://github.com/Simon-Hayden-Dev
Simon-Hayden-Devhttps://github.com/Simon-Hayden-Dev
on Feb 5, 2026https://github.com/angular/angular/issues/66924#issuecomment-3854490762
https://github.com/atscott
atscotthttps://github.com/atscott
on Feb 5, 2026https://github.com/angular/angular/issues/66924#issuecomment-3854741508
https://www.typescriptlang.org/docs/handbook/configuring-watch.html#:~:text=excludeDirectorieshttps://www.typescriptlang.org/docs/handbook/configuring-watch.html#:~:text=excludeDirectories
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Mar 8, 2026https://github.com/angular/angular/issues/66924#issuecomment-4017725056
automatic conversation locking policyhttps://github.com/angular/angular/blob/f0fbced1c55bc8b8ed9df01cea99df42f3e7eae3/contributing-docs/auto-issue-locking.md
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Mar 8, 2026https://github.com/angular/angular/issues/66924#event-23365927792
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/66924
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/66924
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.