Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit 86b4876

Browse files
authored
Fix empty signature tooltip after function call (#616)
Fixes #614. Pulled this from the old LS; it wasn't carried over.
1 parent 75e14ab commit 86b4876

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/LanguageServer/Impl/Sources/SignatureSource.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ public async Task<SignatureHelp> GetSignatureAsync(IDocumentAnalysis analysis, S
9090
?.Item2 ?? -1;
9191
}
9292

93+
activeSignature = activeSignature >= 0
94+
? activeSignature
95+
: (signatures.Length > 0 ? 0 : -1);
96+
9397
return new SignatureHelp {
9498
signatures = signatures.ToArray(),
9599
activeSignature = activeSignature,

0 commit comments

Comments
 (0)