Revert "add an empty parameters list in case of error"
This reverts commit e2b26c5cff.
This commit is contained in:
parent
e2b26c5cff
commit
623700e1a2
@ -123,7 +123,7 @@ fntype is one of fn or λ or lambda"
|
|||||||
{: fntype : arglist}))
|
{: fntype : arglist}))
|
||||||
|
|
||||||
(λ signature-help-format [symbol]
|
(λ signature-help-format [symbol]
|
||||||
"Return a SignatureInformation lsp object
|
"Return a signatureHelp lsp object
|
||||||
|
|
||||||
symbol can be an actual ast symbol or a binding object from a docset"
|
symbol can be an actual ast symbol or a binding object from a docset"
|
||||||
(case-try (analyze-fn symbol.definition)
|
(case-try (analyze-fn symbol.definition)
|
||||||
@ -145,8 +145,7 @@ fntype is one of fn or λ or lambda"
|
|||||||
(catch _ {:label (.. "ERROR: don't know how to format "
|
(catch _ {:label (.. "ERROR: don't know how to format "
|
||||||
(view symbol {:one-line? true :depth 3}))
|
(view symbol {:one-line? true :depth 3}))
|
||||||
:documentation (code-block
|
:documentation (code-block
|
||||||
(view symbol {:depth 3}))
|
(view symbol {:depth 3}))})))))
|
||||||
:parameters []})))))
|
|
||||||
|
|
||||||
(λ hover-format [result]
|
(λ hover-format [result]
|
||||||
"Format code that will appear when the user hovers over a symbol"
|
"Format code that will appear when the user hovers over a symbol"
|
||||||
@ -155,7 +154,7 @@ fntype is one of fn or λ or lambda"
|
|||||||
(case (analyze-fn result.definition)
|
(case (analyze-fn result.definition)
|
||||||
{:fntype ?fntype :name ?name :arglist ?arglist :docstring ?docstring}
|
{:fntype ?fntype :name ?name :arglist ?arglist :docstring ?docstring}
|
||||||
(fn-format ?fntype ?name ?arglist ?docstring)
|
(fn-format ?fntype ?name ?arglist ?docstring)
|
||||||
_ (if (-?> result.keys length (not= 0))
|
_ (if (-?>> result.keys length (< 0))
|
||||||
(code-block
|
(code-block
|
||||||
(.. "ERROR, I don't know how to show this "
|
(.. "ERROR, I don't know how to show this "
|
||||||
"(. "
|
"(. "
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user