提交 07385914 编写于 作者: A Andrew Hall (METAL)

Add missing format for same file extraction. It was removed from...

Add missing format for same file extraction. It was removed from GetSolutionWithOriginalTypeUpdatedAsync
上级 614099dd
......@@ -242,12 +242,17 @@ public async Task<ExtractInterfaceResult> ExtractInterfaceFromAnalyzedTypeAsync(
var unformattedSolution = document.WithSyntaxRoot(editor.GetChangedRoot()).Project.Solution;
// After the interface is inserted, update the original type to show it implements the new interface
var completedSolution = await GetSolutionWithOriginalTypeUpdatedAsync(
var unformattedSolutionWithUpdatedType = await GetSolutionWithOriginalTypeUpdatedAsync(
unformattedSolution, symbolMapping.DocumentIds,
refactoringResult.DocumentToExtractFrom.Id, symbolMapping.TypeNodeAnnotation,
refactoringResult.TypeToExtractFrom, extractedInterfaceSymbol,
extractInterfaceOptions.IncludedMembers, symbolMapping.SymbolToDeclarationAnnotationMap, cancellationToken).ConfigureAwait(false);
var completedSolution = await GetFormattedSolutionAsync(
unformattedSolutionWithUpdatedType,
symbolMapping.DocumentIds.Concat(refactoringResult.DocumentToExtractFrom.Id),
cancellationToken).ConfigureAwait(false);
return new ExtractInterfaceResult(
succeeded: true,
updatedSolution: completedSolution,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册