提交 22e14bf4 编写于 作者: H Heejae Chang 提交者: GitHub

Revert "Fix #30091 throwing exceptions (#30093)"

This reverts commit b3ac2a6f.
上级 b3ac2a6f
......@@ -32,7 +32,7 @@ internal abstract class AbstractRemoveUnusedVariableCodeFixProvider<TLocalDeclar
public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
{
Diagnostic diagnostic = context.Diagnostics.First();
Diagnostic diagnostic = context.Diagnostics.Single();
context.RegisterCodeFix(new MyCodeAction(c => FixAsync(context.Document, diagnostic, c)), diagnostic);
return Task.CompletedTask;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册