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

Add RuntimeCodeExecutionMode to runtime.executeCode() in the API #4856

Open
atsyplenkov opened this issue Sep 30, 2024 · 0 comments
Open

Add RuntimeCodeExecutionMode to runtime.executeCode() in the API #4856

atsyplenkov opened this issue Sep 30, 2024 · 0 comments

Comments

@atsyplenkov
Copy link

atsyplenkov commented Sep 30, 2024

Hi guys,

Could you please consider making positron.runtime.executeCode() in the API behave like the inner positron.runtime.execute(). It would be super helpful for extension developers like me to have the option to pass positron.RuntimeCodeExecutionMode.* and positron.RuntimeErrorBehavior.* to positron.runtime.executeCode().

This change could be really beneficial, especially when a user wants to run some code in the same R environment without displaying the output, just like how it's currently set up in Positron with the styler package:

session.execute(
`styler::style_file('${stylerPath}')`,
id,
positron.RuntimeCodeExecutionMode.Silent,
positron.RuntimeErrorBehavior.Continue);

Thanks for considering this!

System details:

Positron and OS details:

Positron Version: 2024.09.0 (user setup) build 103
Code - OSS Version: 1.93.0
Commit: 8274fe2
Date: 2024-09-30T02:52:11.236Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.19045

Interpreter details:

> sessionInfo()
R version 4.4.1 Patched (2024-08-05 r86984 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)
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

1 participant