提交 2340d881 编写于 作者: C CyrusNajmabadi

Use helper method.

上级 07ed0639
......@@ -29,10 +29,9 @@ private abstract class SymbolReferenceCodeAction : AddImportCodeAction
protected override async Task<Solution> GetChangedSolutionAsync(CancellationToken cancellationToken)
{
var oldText = await OriginalDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
var newText = oldText.WithChanges(TextChanges);
var updatedDocument = await GetUpdatedDocumentAsync(cancellationToken).ConfigureAwait(false);
var updatedDocument = OriginalDocument.WithText(newText);
// Defer to subtype to add any p2p or metadata refs as appropriate.
var updatedProject = UpdateProject(updatedDocument.Project);
var updatedSolution = updatedProject.Solution;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册