Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode command for to eval code given as args #690

Closed
daaku opened this issue Jul 27, 2020 · 2 comments
Closed

vscode command for to eval code given as args #690

daaku opened this issue Jul 27, 2020 · 2 comments

Comments

@daaku
Copy link
Contributor

daaku commented Jul 27, 2020

It would be nice if there was a command that took code as args and essentially ran session.eval or something along those lines. I know there is calva.runCustomREPLCommand, and various existing commands operate on the selection or current top level form. But it would be nice to have a command to eval some code because then other extensions could script code execution (since many like macros allow for invoking commands).

@bpringe
Copy link
Member

bpringe commented Jul 27, 2020

Interesting. Would this code be executed in the currently connected REPL?

@daaku
Copy link
Contributor Author

daaku commented Jul 27, 2020

Could do by default, while accepting an arg to choose between clj or cljs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants