From 01f9ae2b70c952a8d73ffdd834e6bc26e3026bfd Mon Sep 17 00:00:00 2001 From: meganrogge Date: Tue, 25 Jan 2022 13:49:20 -0600 Subject: [PATCH] fix #141420 --- src/vs/workbench/api/common/extHost.api.impl.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vs/workbench/api/common/extHost.api.impl.ts b/src/vs/workbench/api/common/extHost.api.impl.ts index 4301f51711410..82ecf39d317f2 100644 --- a/src/vs/workbench/api/common/extHost.api.impl.ts +++ b/src/vs/workbench/api/common/extHost.api.impl.ts @@ -663,6 +663,9 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I return extHostEditorInsets.createWebviewEditorInset(editor, line, height, options, extension); }, createTerminal(nameOrOptions?: vscode.TerminalOptions | vscode.ExtensionTerminalOptions | string, shellPath?: string, shellArgs?: string[] | string): vscode.Terminal { + if (nameOrOptions && typeof nameOrOptions === 'object' && 'disablePersistence' in nameOrOptions) { + checkProposedApiEnabled(extension, 'terminalDisablePersistence'); + } if (typeof nameOrOptions === 'object') { if ('pty' in nameOrOptions) { return extHostTerminalService.createExtensionTerminal(nameOrOptions);