Skip to content

Conversation

@sheetalkamat
Copy link
Member

No description provided.

Scheduling update
Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@myapp/unrelated2/index.d.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory
Reloading new file names and options
Synchronizing program
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before this change this would cause use to invalidate resolution for ts-types as well and we would re-resolve it. Because everything in @myapp was marked as something to invalidate because of above directory watcher invoke instead of marking eberything in @myapp/unrelated2

CreatingProgramWith::
roots: ["/user/username/projects/myproject/lib/app.ts"]
options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
======== Resolving module '@myapp/ts-types' from '/user/username/projects/myproject/lib/app.ts'. ========
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is re-resolved here because node_modules get created.

CreatingProgramWith::
roots: ["/user/username/projects/myproject/lib/app.ts"]
options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
======== Resolving module '@myapp/ts-types' from '/user/username/projects/myproject/lib/app.ts'. ========
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-resolve is becuse "@myapp" is created in node_modules

@sheetalkamat sheetalkamat merged commit 53d3787 into main Apr 17, 2023
@sheetalkamat sheetalkamat deleted the scopedPackageUpdate branch April 17, 2023 19:37
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants