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

Execute selected code in console #5784

Closed
wants to merge 4 commits into from

Conversation

nstrayer
Copy link
Contributor

Based on #5747.

Adds a new action that can be used to execute selected code. Basically a wrapper for the existing workbench.action.executeCode.console action but that gets the code and language from the active editor and its selection.

execute-selected.mov

QA Notes

This is a pretty thin wrapper around the existing action so I didn't add any tests. However you should be able to execute code that you have selected in a python or r file and it should go to the console. Aka basically the same as running cmd + enter.

@nstrayer nstrayer requested a review from jmcphers December 17, 2024 20:13
Copy link

github-actions bot commented Dec 17, 2024

E2E Tests 🚀  ?
This PR will run tests tagged with: @critical

@nstrayer
Copy link
Contributor Author

Closing because I didnt realize we already have this with workbench.action.positronConsole.executeCode

@nstrayer nstrayer closed this Dec 17, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant