Skip to content

Handle the case where the FAR results map is empty #49254

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 2 commits into from
May 26, 2022

Conversation

amcasey
Copy link
Member

@amcasey amcasey commented May 26, 2022

Searching exactly one project does not imply the presence of exactly one references list.

Fixes #49217

Searching exactly one project does not imply the presence of exactly one references list.

Fixes microsoft#49217
@amcasey amcasey requested a review from DanielRosenwasser May 26, 2022 01:24
@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels May 26, 2022
@amcasey
Copy link
Member Author

amcasey commented May 26, 2022

@DanielRosenwasser I'm wondering if my previous repro attempts had multiple projects open and, therefore, bypassed the fast path.

@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented May 26, 2022

To be honest, I wonder if this is actually that much faster/simpler for the caller (I didn't look), but the fix here is small and reasonable

Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
@amcasey amcasey merged commit 8497483 into microsoft:main May 26, 2022
@amcasey amcasey deleted the EmptyFarResult branch May 26, 2022 18:00
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.

Crash when find-all-references/rename finds no references
4 participants