Skip to content

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

Merged
Andrew Casey (amcasey) merged 2 commits into
microsoft:mainfrom
amcasey:EmptyFarResult
May 26, 2022
Merged

Handle the case where the FAR results map is empty#49254
Andrew Casey (amcasey) merged 2 commits into
microsoft:mainfrom
amcasey:EmptyFarResult

Conversation

@amcasey

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Member Author

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

@DanielRosenwasser

Daniel Rosenwasser (DanielRosenwasser) commented May 26, 2022

Copy link
Copy Markdown
Member

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

Comment thread src/server/session.ts Outdated
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
@amcasey
Andrew Casey (amcasey) merged commit 8497483 into microsoft:main May 26, 2022
@amcasey
Andrew Casey (amcasey) deleted the EmptyFarResult branch May 26, 2022 18:00
@microsoft 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

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