提交 69cad661 编写于 作者: S Steffen Forkmann

cleanup

上级 5b49a668
......@@ -43,11 +43,13 @@ type internal FSharpFixIndexerAccessCodeFixProvider() =
diagnostics
|> Seq.iter (fun diagnostic ->
let diagnostics = ImmutableArray.Create diagnostic
let span,replacement =
context.Span,sourceText.GetSubText(context.Span).ToString()
let codefix =
createCodeFix(
FSComp.SR.addIndexerDot(),
context,
TextChange(context.Span, sourceText.GetSubText(context.Span).ToString() + "."))
TextChange(span, replacement + "."))
context.RegisterCodeFix(codefix, diagnostics))
} |> RoslynHelpers.StartAsyncUnitAsTask(context.CancellationToken)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册