Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit69cad66

Browse files
committed
cleanup
1 parent5b49a66 commit69cad66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎vsintegration/src/FSharp.Editor/CodeFix/FixIndexerAccess.fs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ type internal FSharpFixIndexerAccessCodeFixProvider() =
4343
diagnostics
4444
|> Seq.iter(fun diagnostic->
4545
letdiagnostics= ImmutableArray.Create diagnostic
46+
letspan,replacement=
47+
context.Span,sourceText.GetSubText(context.Span).ToString()
4648

4749
letcodefix=
4850
createCodeFix(
4951
FSComp.SR.addIndexerDot(),
5052
context,
51-
TextChange(context.Span, sourceText.GetSubText(context.Span).ToString()+"."))
53+
TextChange(span, replacement+"."))
5254
context.RegisterCodeFix(codefix, diagnostics))
5355
}|> RoslynHelpers.StartAsyncUnitAsTask(context.CancellationToken)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp