clojure-lsp / clojure-lsp

Clojure & ClojureScript Language Server (LSP) implementation
https://clojure-lsp.io
MIT License
1.16k stars 152 forks source link

Copy memoized fn's doc when using `memoize` #1863

Open simonacca opened 1 month ago

simonacca commented 1 month ago

Clojure-lsp has a "documentation and clojuredocs integration" feature which (among other things) can show a function's signature and documentation.

When a function is memoized using memoize from the standard library and stored in a var, it would be useful if the the function's documentation were to be carried over to memoized version of the fn.

ericdallo commented 1 month ago

I agree it'd be good for user but it's not trivial to do that AFAICS