提交 c6d4e0da 编写于 作者: C CyrusNajmabadi

use the right root.

上级 12476e8e
......@@ -27,7 +27,7 @@ private async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagn
await FixAllAsync(document, diagnostics, editor, cancellationToken).ConfigureAwait(false);
var newRoot = editor.GetChangedRoot();
return document.WithSyntaxRoot(root);
return document.WithSyntaxRoot(newRoot);
}
protected abstract Task FixAllAsync(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册