Skip to content

Fix bug: don't call addIndirectUser if we're not tracking indirect users#22121

Merged
1 commit merged into
masterfrom
esModuleInteropFindAllReferences
Feb 22, 2018
Merged

Fix bug: don't call addIndirectUser if we're not tracking indirect users#22121
1 commit merged into
masterfrom
esModuleInteropFindAllReferences

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Feb 22, 2018

Fixes #22104

@weswigham Is there a way we can avoid calling addIndirectUser on every default import -- only if it's acting like a namespace import?

@ghost ghost requested a review from weswigham February 22, 2018 17:01
////}

// @Filename: /b.ts
////import * as a from "a";
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Changed this to be testing what #21703 fixed.

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.

Heh. I had this open in multiple editors with both versions in each to directly compare where their execution differed. I did not notice that the wrong version had been saved 🐈 Thanks.

Copy link
Copy Markdown
Member

@weswigham weswigham left a comment

Choose a reason for hiding this comment

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

I don't think there's a way to disambiguate just by looking at the import syntactically.

@ghost ghost merged commit 8463b1e into master Feb 22, 2018
@ghost ghost deleted the esModuleInteropFindAllReferences branch February 22, 2018 17:21
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
This pull request was closed.
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.

1 participant