Skip to content

Commit 41f4bca

Browse files
Copilotjakebailey
andcommitted
Run dprint formatting
Fixed trailing whitespace in Go files as identified by dprint formatter. Co-authored-by: jakebailey <[email protected]>
1 parent 1ef3e9f commit 41f4bca

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

internal/fourslash/tests/signatureHelpApplicableRange_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func TestSignatureHelpApplicableRange(t *testing.T) {
2020
let s =/*a*/ obj.foo("Hello, world!")/*b*/
2121
/*c*/;`
2222
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
23-
23+
2424
// Markers a, b, c should NOT show signature help (outside the call)
2525
f.VerifyNoSignatureHelpForMarkers(t, "a", "b", "c")
2626
}

internal/fourslash/tests/signatureHelpNestedCalls_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ func TestSignatureHelpNestedCalls(t *testing.T) {
1515
function bar(s: string) { return s; }
1616
let s = foo(/*a*/ /*b*/bar/*c*/(/*d*/"hello"/*e*/)/*f*/);`
1717
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
18-
18+
1919
// Markers a, b, c should show foo (outer call)
2020
f.GoToMarker(t, "a")
2121
f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{Text: "foo(s: string): string"})
22-
22+
2323
f.GoToMarker(t, "b")
2424
f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{Text: "foo(s: string): string"})
25-
25+
2626
f.GoToMarker(t, "c")
2727
f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{Text: "foo(s: string): string"})
28-
28+
2929
// Marker d should show bar (inside inner call)
3030
f.GoToMarker(t, "d")
3131
f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{Text: "bar(s: string): string"})
32-
32+
3333
// Markers e, f should show foo (after inner call)
3434
f.GoToMarker(t, "e")
3535
f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{Text: "foo(s: string): string"})
36-
36+
3737
f.GoToMarker(t, "f")
3838
f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{Text: "foo(s: string): string"})
3939
}

internal/ls/signaturehelp.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ func getContainingArgumentInfo(node *ast.Node, sourceFile *ast.SourceFile, check
769769
if firstArgumentInfo == nil {
770770
firstArgumentInfo = argumentInfo
771771
}
772-
772+
773773
// If any call's span contains the position, return it.
774774
// We walk from inner to outer, so this naturally prefers the innermost call
775775
// when multiple calls contain the position.
@@ -778,7 +778,7 @@ func getContainingArgumentInfo(node *ast.Node, sourceFile *ast.SourceFile, check
778778
}
779779
}
780780
}
781-
781+
782782
// No call's span contains the position. Return the innermost call as fallback.
783783
// This handles cases like foo(bar(|)) where bar's span might be empty.
784784
return firstArgumentInfo
@@ -1075,11 +1075,11 @@ func getApplicableSpanForArguments(argumentList *ast.NodeList, node *ast.Node, s
10751075
}
10761076
applicableSpanStart := argumentList.Pos()
10771077
applicableSpanEnd := scanner.SkipTrivia(sourceFile.Text(), argumentList.End())
1078-
1078+
10791079
// If the argument list is empty (Pos == End), extend the span to include at least
10801080
// one position. This handles foo(|) where the cursor is right after the opening paren.
10811081
applicableSpanEnd = ensureMinimumSpanSize(applicableSpanStart, applicableSpanEnd)
1082-
1082+
10831083
return core.NewTextRange(applicableSpanStart, applicableSpanEnd)
10841084
}
10851085

0 commit comments

Comments
 (0)