From 7b23d7390256a2fef12f11e62694bfd176bb575b Mon Sep 17 00:00:00 2001 From: Joyce Er Date: Mon, 28 Jun 2021 23:50:27 +0000 Subject: [PATCH] `preserveFocus: true` when reopening interactive window --- .../contrib/interactive/browser/interactive.contribution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/interactive/browser/interactive.contribution.ts b/src/vs/workbench/contrib/interactive/browser/interactive.contribution.ts index bf5fa60bf18..308c44295bb 100644 --- a/src/vs/workbench/contrib/interactive/browser/interactive.contribution.ts +++ b/src/vs/workbench/contrib/interactive/browser/interactive.contribution.ts @@ -255,7 +255,7 @@ registerAction2(class extends Action2 { if (editors.length) { const editorInput = editors[0].editor as InteractiveEditorInput; const currentGroup = editors[0].groupId; - await editorService.openEditor(editorInput, { preserveFocus: false }, currentGroup); + await editorService.openEditor(editorInput, { preserveFocus: true }, currentGroup); return { notebookUri: editorInput.resource!, inputUri: editorInput.inputResource -- GitLab