Fork me on GitHub
#chlorine-clover
<
2021-09-25
>
djblue19:09:24

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?

seancorfield19:09:58

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

djblue19:09:57

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.

djblue19:09:49

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