Skip to content

When directory watcher is invoked with any file from node_modules package, invalidate for file paths in that package #43974

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

Merged
merged 4 commits into from
May 6, 2021

Conversation

sheetalkamat
Copy link
Member

Because watch notifications are so unreliable, this is heuristic that will help with scenarios where we dont get notification for addition of index.d.ts for a package but some other files from it. This was the core issue in #41735 where it would eg get notification for node_modules/@types/node/assert.d.ts and some such other files but not the index.d.ts but index.d.ts is the main file that pulls the types so it would ignore the installation of @types/node and there would be error for not finding the types.

Fixes #41735

…rom node_modules results in not refresing diagnostics

Test case for #41735
@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels May 6, 2021
@sheetalkamat sheetalkamat merged commit 233f28c into master May 6, 2021
@sheetalkamat sheetalkamat deleted the npmInstall branch May 6, 2021 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changes in node_modules not getting picked up in harness
3 participants