-
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 sync over async blocking in Extract Method/Interface options code #76510
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,12 +22,13 @@ public override object GetOptions(CancellationToken cancellationToken) | |
? string.Empty | ||
: _typeAnalysisResult.TypeToExtractFrom.ContainingNamespace.ToDisplayString(); | ||
|
||
return AbstractExtractInterfaceService.GetExtractInterfaceOptionsAsync( | ||
return AbstractExtractInterfaceService.GetExtractInterfaceOptions( | ||
_typeAnalysisResult.DocumentToExtractFrom, | ||
_typeAnalysisResult.TypeToExtractFrom, | ||
_typeAnalysisResult.ExtractableMembers, | ||
containingNamespaceDisplay, | ||
cancellationToken).WaitAndGetResult_CanCallOnBackground(cancellationToken); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removing this was the goal. Note: This was terrifying as the impl was doing a JTF switch to teh ui thread. this was only ok as we're guaranteed to always be on the UI thread to begin with when calling GetOptions (guaranteed as a publicly documented contract of CodeActionWithOptions:
|
||
_typeAnalysisResult.FormattingOptions, | ||
cancellationToken); | ||
} | ||
|
||
protected override async Task<IEnumerable<CodeActionOperation>> ComputeOperationsAsync( | ||
|
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.
view with whitespace off.