chlorine-clover

djblue 2021-09-25T19:27:24.026300Z

Hi, I'm looking at providing a #portal vs-code extension that runs the UI directly in vs-code. To make things super seamless, I was wondering if there was a way I could leverage a user's existing clover repl connection to execute some setup code? I can do something like:

(-> (.executeCommand vscode/commands "clover.evaluate-block")
    (.then (fn [result] (prn result))))
but that depends on the block of code a user has selected. Is there a more programatic way to leverage the clover repl from another vs-code extension?

seancorfield 2021-09-25T19:29:58.027700Z

Most VS Code users work with Calva and nREPL so you can't rely on either of them being present by default.

djblue 2021-09-25T19:32:57.029900Z

That's true, I was hoping to get something working with clover first then try calva. Then have logic in the portal extension that tries to find a repl extension.

djblue 2021-09-25T19:33:49.030600Z

The main issue is I need a connection to the repl to coordinate host/port information