未验证 提交 17e4b7b4 编写于 作者: C CyrusNajmabadi 提交者: GitHub

Update src/Features/CSharp/Portable/UseExpressionBody/UseExpressionBodyCodeRefactoringProvider.cs

上级 4e3f21c4
......@@ -34,7 +34,7 @@ public override async Task ComputeRefactoringsAsync(CodeRefactoringContext conte
return;
}
var position = context.Span.Start;
var position = textSpan.Start;
var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
var node = root.FindToken(position).Parent;
if (node == null)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册