Skip to content

Conversation

sheetalkamat
Copy link
Member

Fixes #42976

@typescript-bot typescript-bot added the For Milestone Bug PRs that fix a bug with a specific milestone label Apr 27, 2021
Copy link
Member

@andrewbranch andrewbranch left a comment

Choose a reason for hiding this comment

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

Note that this is the only place checker.isDeclarationVisible is used—seems like it could just be renamed to isDefinitionVisible and augmented with this code. Though, the distinction between the two is somewhat useful to understanding the code.

@sheetalkamat
Copy link
Member Author

isDeclarationVisible is introduced to be used by declaration emitter and hence keeping it distinct.

@sheetalkamat
Copy link
Member Author

Just noticed there are some test failures, i will take a look at them.

Copy link
Member

@amcasey amcasey left a comment

Choose a reason for hiding this comment

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

The bug mentions that file openness affects the behavior, but I don't see anything about that in this PR. Am I missing something?

@sheetalkamat
Copy link
Member Author

Depending on which project is open the set of things where it would be found is going to be different so its not relevant to this issue. The main issue is if project set would be opened based on localness (which was set to local before and now we try to make it not local) making it work.

Copy link
Member

@amcasey amcasey left a comment

Choose a reason for hiding this comment

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

Thanks for the explanation!

@sheetalkamat sheetalkamat merged commit c96b472 into master Apr 30, 2021
@sheetalkamat sheetalkamat deleted the findAllRefs branch April 30, 2021 20:18
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.

[Typescript] Find All References does not find object properties in multi-module workspace
4 participants