BetterThanTomorrow / joyride

Making VS Code Hackable like Emacs since 2022
https://marketplace.visualstudio.com/items?itemName=betterthantomorrow.joyride
Other
469 stars 17 forks source link

A command for evaluating the selection #106

Closed PEZ closed 1 year ago

PEZ commented 1 year ago

Calva is limited to one REPL session per window. Meaning that if you work with a Clojure project and have Calva connected to the project REPL, you can't also be connected to Joyride's REPL. In waiting for this to be solved in Calva, Joyride can make it more convenient to evaluate code by allowing the selection to be evaluated conveniently.

The user can solve this with Joyride, but it is a worthy command to have built in.

PEZ commented 1 year ago

I should be banned from late coding, @borkdude. Pushed the commit directly to master, but had intended to make it a pull request. Please have a look at the commit.

borkdude commented 1 year ago

I trust that you did what you needed to do ;-). I'm not sure if the code will be evaluated in the right namespace using this approach

PEZ commented 1 year ago

Good point! We should already have that problem with the current runCode command. But the user expectations might be different, of course.

I'll try to figure out what namespace it is evaluated in.