lsp

Harold 2024-10-15T22:32:36.454979Z

It occurred to me that lsp + git might be used to obtain functionality like "go to definition as-of" ... the idea would be to compute the lsp data at each commit (retroactively, w/ git), and then cleverly store at which points in time a given defn (for instance) changed. Then we could tool up querying this data to allow quickly exploring the history of a clojure project. Does this make sense? Or am I barking up the wrong tree?

ericdallo 2024-10-15T23:20:38.560659Z

I got the idea, but sounds complex and the LSP protocol does not support it, need to add too much custom logic for that. Interesting for a LSIF in GitHub for example tho

2024-10-15T23:30:51.131129Z

Very similar to a project rich started before kondo existed that hasn't seen much traction https://github.com/Datomic/codeq

Harold 2024-10-16T00:33:11.957169Z

@ericdallo - hadn't seen LSIF - looks relevant, thank you for the pointer.

Harold 2024-10-16T00:33:54.615579Z

@hiredman - ah! I'm ignorant of kondo ... could it be used to produce the kind of metadata I'm thinking of?

2024-10-16T00:36:54.915819Z

clj-kondo is the tool that does the analysis that clojure-lsp uses

Harold 2024-10-16T00:39:44.288299Z

@hiredman - helpful, I will look into it. 🙇