Function signatures rendered from ast were being rendered differently
from signatures rendered from metadata, this unifies them, using the
metadata format for both.
Before:
(fn func-name [arg1 arg2] ...)
After:
(func-name arg1 arg2)
This signature is used in the 'hover' feature and in completion
documentation.
This patch also adds three dashes as a separator between the signature
and the documentation text to improve readability. Since the text is
being interpreted as Markdown, this results in a line being drawn. This
format convention matches other language servers, for example LuaLS.
|
||
|---|---|---|
| .. | ||
| data/fennel-ls/docsets | ||
| utils | ||
| capabilities.fnl | ||
| check.fnl | ||
| code-action.fnl | ||
| completion.fnl | ||
| diagnostic.fnl | ||
| document-highlight.fnl | ||
| goto-definition.fnl | ||
| hover.fnl | ||
| init.fnl | ||
| json-rpc.fnl | ||
| lint.fnl | ||
| misc.fnl | ||
| references.fnl | ||
| rename.fnl | ||
| settings.fnl | ||
| signature-help.fnl | ||
| string-processing.fnl | ||