diff --git a/apps/vscode/src/host/executors.ts b/apps/vscode/src/host/executors.ts index fddfe2b5..f9da27af 100644 --- a/apps/vscode/src/host/executors.ts +++ b/apps/vscode/src/host/executors.ts @@ -148,7 +148,11 @@ const csharpCellExecutor: VSCodeCellExecutor = { const bashCellExecutor: VSCodeCellExecutor = { language: "bash", execute: async (blocks: string[]) => { - const terminal = window.activeTerminal || window.createTerminal(); + // todo: this should probably check that the terminal isn't an interactive terminal for languages + // other than R as well... + const terminal = window.activeTerminal && window.activeTerminal?.name !== 'R Interactive' ? + window.activeTerminal : window.createTerminal(); + terminal.show(); terminal.sendText(blocks.join("\n")); }, @@ -278,7 +282,7 @@ export async function ensureRequiredExtension( } } } else { - return false; + return true; } }