Skip to content

Commit

Permalink
fix #141420
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Jan 25, 2022
1 parent 9daa788 commit 01f9ae2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vs/workbench/api/common/extHost.api.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 01f9ae2

Please sign in to comment.