From ff4d96587fc5575f33b5bdc81008eb262f02cf7b Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Thu, 30 Apr 2020 14:31:20 +0200 Subject: [PATCH] ensure vscode.window.showTextEditor opens a text editor not a custom editor, #96397 --- src/vs/workbench/api/browser/mainThreadEditors.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/api/browser/mainThreadEditors.ts b/src/vs/workbench/api/browser/mainThreadEditors.ts index f178c2f2b51..dc825512734 100644 --- a/src/vs/workbench/api/browser/mainThreadEditors.ts +++ b/src/vs/workbench/api/browser/mainThreadEditors.ts @@ -124,7 +124,8 @@ export class MainThreadTextEditors implements MainThreadTextEditorsShape { selection: options.selection, // preserve pre 1.38 behaviour to not make group active when preserveFocus: true // but make sure to restore the editor to fix https://github.com/microsoft/vscode/issues/79633 - activation: options.preserveFocus ? EditorActivation.RESTORE : undefined + activation: options.preserveFocus ? EditorActivation.RESTORE : undefined, + ignoreOverrides: true }; const input: IResourceEditorInput = {