miniblog.

← Back to all posts
23
@jack @PaniczGodek @aartaka Yeah, exactly. The devil's in the details though. If the loaded function was on line 20, do you try to find the current version on line 25, or just pop up a buffer of the loaded version? Where does the user then edit? One idea I've been thinking about is making the interpreter session speak LSP. That way you'd have go-to-def and completion based on loaded definitions, but it's unconventional.

3 Comments

@wilfredh but wait, isn’t LSP file-oriented? Clojure one is, and it sucks. @jack @PaniczGodek
@aartaka @jack @PaniczGodek Well, LSP reflects the state of the editor: the editor sends didOpen at the start, then didChange on every edit. So the server knows the editor state even without saving. Sounds like you have a different model in mind though?
@wilfredh no, I simply didn’t know about it! Thanks for the details! @jack @PaniczGodek