Skip to content

Consider module augmentations in files referenced by imports in watch/incremental - #45156

Merged
Andrew Branch (andrewbranch) merged 5 commits into
microsoft:mainfrom
andrewbranch:bug/44094
Jul 23, 2021
Merged

Andrew Branch (andrewbranch) merged 5 commits into
microsoft:mainfrom
andrewbranch:bug/44094

Conversation

@andrewbranch

Copy link
Copy Markdown
Member

Fixes #44094

* Get the referencedFile from the imported module symbol
*/
function getReferencedFileFromImportedModuleSymbol(symbol: Symbol) {
if (symbol.declarations && symbol.declarations[0]) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It was literally just taking the first declaration and ignoring all others 🤷

@amcasey Andrew Casey (amcasey) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense to me.

Comment thread src/compiler/builderState.ts Outdated
Comment thread src/compiler/builderState.ts Outdated
@andrewbranch
Andrew Branch (andrewbranch) merged commit 48aecfa into microsoft:main Jul 23, 2021
@andrewbranch
Andrew Branch (andrewbranch) deleted the bug/44094 branch July 23, 2021 23:33
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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 to module augmentations are ignored in --watch mode

3 participants