-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed cases where 1:1 mapping between Roslyn and editor text buffer/s… (
#24849) * Fixed cases where 1:1 mapping between Roslyn and editor text buffer/snapshot are broken. First case was where the code reused same Roslyn text snapshot to 2 different editor snapshots. that can cause getting editor snapshot from roslyn snapshot to fail. Second case was where same editor snapshot can give 2 different roslyn text snapshot breaking invariant. didn't do much cleanup except fixing those above two. * null check. weakReference can be null. * make sure weakReference always exist * fixed test failures * addressed PR feedbacks * updated comment
- Loading branch information
1 parent
2fc3b0d
commit 82ae6b7
Showing
5 changed files
with
84 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.