Fork me on GitHub
#lsp
<
2022-08-05
>
lassemaatta06:08:33

is it possible to use clojure-lsp + lsp-ui to show the namespace docstring (in a lsp-ui doc window)? I have vague memory of seeing ns docstrings in the past, but now that I tested it I couldn't figure out how to see them (in eg. when the cursor | is at (ns foo (:require [some-ns-wit|h-a-docstring :as s]) ...)).

ericdallo13:08:29

I think we don't have this feature

ericdallo13:08:40

but sounds nice, feel free to create a issue about it

✔️ 1
ericdallo19:08:06

Done, available on next release! or via #clojure-lsp-builds

lassemaatta05:08:19

Great, thanks alot! Just tested with the latest nightly and seems to work great out-of-the-box with lsp-ui 👍

👍 1
dpsutton16:08:18

Here’s something I’ve never seen before. Click on the lsp-ui “4 references” and get a list which includes Users/dan/.emacs.d/.cache/metabase.logger.clj

ericdallo17:08:52

Yep :) this was kind of a hack since the protocol itself doesn't support it

ericdallo17:08:14

Calva users used to complain about that missing feature all the time since it's more common to use the mouse on VSCode

dpsutton17:08:16

so not a bug. just ignore this and other good things happen?

ericdallo17:08:00

Oh, I thought you were talking about the feature, sorry 😂

ericdallo17:08:05

yeah, that's what happens:

dpsutton17:08:23

oh love the feature. surprised to see a cache file not in my classpath in here

ericdallo17:08:50

when you open a clojure-file, we lint that file and consider its analysis, so it's now considered as part of the project

dpsutton17:08:12

oh so i must have opened this file inadvertenly?

ericdallo17:08:48

Yes, if you delete that cache file, it will not show that anymore

🙏 1
ericdallo17:08:57

unless you open the file again

ericdallo17:08:16

I have mixed feelings about that

dpsutton17:08:26

yeah i can see that being a bit weird. Thanks for explaining

👍 1