Tags: A-SunsetMkt-Forks/terminal
Tags
[deadlock fix] Remove lock for SIUP::GetSelectionRange() (microsoft#1… …1386) ## Summary of the Pull Request The deadlock was caused by `ScreenInfoUiaProviderBase::GetSelection()` calling `TermControlUiaProvider::GetSelectionRange` (both of which attempted to lock the console). This PR removes the lock and initialization check from `TermControlUiaProvider`. It is no longer necessary because the only one that calls it is `SIUPB::GetSelection()`. Additionally, this adds some code that was useful in debugging this race condition. That should help us figure out any locking issues that may come up in the future. ## References microsoft#11312 Closes microsoft#11385 ## Validation Steps Performed ✅ Repro steps don't cause hang
PreviousNext