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

Fix empty signature tooltip after function call #616

Merged
merged 1 commit into from
Feb 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/LanguageServer/Impl/Sources/SignatureSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ public async Task<SignatureHelp> GetSignatureAsync(IDocumentAnalysis analysis, S
?.Item2 ?? -1;
}

activeSignature = activeSignature >= 0
? activeSignature
: (signatures.Length > 0 ? 0 : -1);

return new SignatureHelp {
signatures = signatures.ToArray(),
activeSignature = activeSignature,
Expand Down