Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -955,9 +955,10 @@
"default": "editor",
"enum": [
"editor",
"terminal"
"terminal",
"none"
],
"description": "Keeping focus when running."
"description": "What to show/focus after running code. Set to 'editor' or 'terminal' to show the terminal. Set to 'none' to not show the terminal."
},
"r.alwaysUseActiveTerminal": {
"type": "boolean",
Expand Down
4 changes: 3 additions & 1 deletion src/rTerminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,5 +265,7 @@ export async function runTextInTerm(text: string): Promise<void> {

function setFocus(term: vscode.Terminal) {
const focus: string = config().get('source.focus');
term.show(focus !== 'terminal');
if (focus !== 'none') {
term.show(focus !== 'terminal');
}
}