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?
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
Very similar to a project rich started before kondo existed that hasn't seen much traction https://github.com/Datomic/codeq
@ericdallo - hadn't seen LSIF - looks relevant, thank you for the pointer.
@hiredman - ah! I'm ignorant of kondo ... could it be used to produce the kind of metadata I'm thinking of?
clj-kondo is the tool that does the analysis that clojure-lsp uses
@hiredman - helpful, I will look into it. 🙇