From a004864bda711f2495119e346ec69591478f292b Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Tue, 11 Jun 2019 11:21:02 -0700 Subject: [PATCH] Finalize TerminalOptions.runInBackground API Fixes #75278 --- src/vs/vscode.d.ts | 9 +++++++++ src/vs/vscode.proposed.d.ts | 11 ----------- src/vs/workbench/api/node/extHost.api.impl.ts | 1 - 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index 498d0761462..3be68c79d01 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -6988,6 +6988,15 @@ declare module 'vscode' { * must be provided as nothing will be inherited from the process or any configuration. */ strictEnv?: boolean; + + /** + * When enabled the terminal will run the process as normal but not be surfaced to the user + * until `Terminal.show` is called. The typical usage for this is when you need to run + * something that may need interactivity but only want to tell the user about it when + * interaction is needed. Note that the terminals will still be exposed to all extensions + * as normal. + */ + runInBackground?: boolean; } /** diff --git a/src/vs/vscode.proposed.d.ts b/src/vs/vscode.proposed.d.ts index 317a06d6a5b..6ed53097424 100644 --- a/src/vs/vscode.proposed.d.ts +++ b/src/vs/vscode.proposed.d.ts @@ -1084,17 +1084,6 @@ declare module 'vscode' { //#region Terminal - export interface TerminalOptions { - /** - * When enabled the terminal will run the process as normal but not be surfaced to the user - * until `Terminal.show` is called. The typical usage for this is when you need to run - * something that may need interactivity but only want to tell the user about it when - * interaction is needed. Note that the terminals will still be exposed to all extensions - * as normal. - */ - runInBackground?: boolean; - } - /** * An [event](#Event) which fires when a [Terminal](#Terminal)'s dimensions change. */ diff --git a/src/vs/workbench/api/node/extHost.api.impl.ts b/src/vs/workbench/api/node/extHost.api.impl.ts index 6f3dcbb327b..9612b41ee3d 100644 --- a/src/vs/workbench/api/node/extHost.api.impl.ts +++ b/src/vs/workbench/api/node/extHost.api.impl.ts @@ -493,7 +493,6 @@ export function createApiFactory( }, createTerminal(nameOrOptions?: vscode.TerminalOptions | string, shellPath?: string, shellArgs?: string[] | string): vscode.Terminal { if (typeof nameOrOptions === 'object') { - nameOrOptions.runInBackground = nameOrOptions.runInBackground && extension.enableProposedApi; return extHostTerminalService.createTerminalFromOptions(nameOrOptions); } return extHostTerminalService.createTerminal(nameOrOptions, shellPath, shellArgs);