Skip to content

Commit a7aaa3e

Browse files
committed
Fixes #6 and now forces terminal to show when executeInInteractiveScala command is executed
1 parent ef730b6 commit a7aaa3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extension.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ function sendSelectionToTerminal(activeTextEditor: vscode.TextEditor) {
3434
text = activeTextEditor.document.getText(selection);
3535
}
3636
text = text.trim();
37-
interactiveTerminal.sendText(text, true);
37+
interactiveTerminal.show();
38+
interactiveTerminal.sendText(`:paste`);
39+
interactiveTerminal.sendText(`${text}`);
40+
interactiveTerminal.sendText("\u0004");
3841
}
3942

4043
function disposeTerminal() {

0 commit comments

Comments
 (0)