-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Remove usage of WaitAndGetResult #76474
Conversation
@dotnet/roslyn-ide @JoeRobich @jasonmalinowski ptal. |
@@ -588,7 +589,8 @@ private void QueueApplyReplacements() | |||
return (replacementInfo, mergeResult); | |||
} | |||
|
|||
private void ApplyReplacements(IInlineRenameReplacementInfo replacementInfo, LinkedFileMergeSessionResult mergeResult, CancellationToken cancellationToken) | |||
private async Task ApplyReplacementsAsync( | |||
IInlineRenameReplacementInfo replacementInfo, LinkedFileMergeSessionResult mergeResult, CancellationToken cancellationToken) | |||
{ | |||
_threadingContext.ThrowIfNotOnUIThread(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be changed to await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync
(which will be a NOP but will better fit expected patterns with the return type change)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
No description provided.