Skip to content
This repository has been archived by the owner on Aug 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #64 from s-kostyaev/fix-sig-help-for-single-named-…
Browse files Browse the repository at this point in the history
…result

fix signature help for single named result
  • Loading branch information
saibing authored Jan 19, 2019
2 parents 78f23cd + d1d51c2 commit fef515c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions langserver/internal/source/signature_help.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func formatResults(t *types.Tuple, qualifier types.Qualifier) string {
// handle single named result
if t.Len() == 1 && el.Name() != "" {
fmt.Fprintf(&b, "(%v %v)", el.Name(), typ)
break
}
if el.Name() == "" {
fmt.Fprintf(&b, "%v", typ)
Expand Down

0 comments on commit fef515c

Please sign in to comment.