error parameter hotfix, but better

This commit is contained in:
XeroOl 2025-06-25 00:55:07 -05:00
parent fc57612fea
commit 01b03de17f

View File

@ -6,6 +6,7 @@ user code. Fennel-ls doesn't support user-code formatting as of now."
(local {: sym? (local {: sym?
: view : view
: table?} (require :fennel)) : table?} (require :fennel))
(local message (require :fennel-ls.message))
(λ code-block [str] (λ code-block [str]
(.. "```fnl\n" str "\n```")) (.. "```fnl\n" str "\n```"))
@ -142,7 +143,8 @@ fntype is one of fn or λ or lambda"
{:label signature {:label signature
:documentation docstring :documentation docstring
:parameters parameters} :parameters parameters}
(catch _ {:label (.. "ERROR: don't know how to format " (catch _ {:parameters (message.array)
: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}))})))))