diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index 13b07a2fc06..1acd83a8262 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -5920,6 +5920,19 @@ declare module 'vscode' { */ export const terminals: ReadonlyArray; + /** + * The currently active terminal or `undefined`. The active terminal is the one that + * currently has focus or most recently had focus. + */ + export const activeTerminal: Terminal | undefined; + + /** + * An [event](#Event) which fires when the [active terminal](#window.activeTerminal) + * has changed. *Note* that the event also fires when the active terminal changes + * to `undefined`. + */ + export const onDidChangeActiveTerminal: Event; + /** * An [event](#Event) which fires when a terminal has been created, either through the * [createTerminal](#window.createTerminal) API or commands. diff --git a/src/vs/vscode.proposed.d.ts b/src/vs/vscode.proposed.d.ts index c16a02dd272..18714234e9d 100644 --- a/src/vs/vscode.proposed.d.ts +++ b/src/vs/vscode.proposed.d.ts @@ -995,19 +995,6 @@ declare module 'vscode' { } export namespace window { - /** - * The currently active terminal or `undefined`. The active terminal is the one that - * currently has focus or most recently had focus. - */ - export const activeTerminal: Terminal | undefined; - - /** - * An [event](#Event) which fires when the [active terminal](#window.activeTerminal) - * has changed. *Note* that the event also fires when the active terminal changes - * to `undefined`. - */ - export const onDidChangeActiveTerminal: Event; - /** * Create a [TerminalRenderer](#TerminalRenderer). * diff --git a/src/vs/workbench/api/node/extHost.api.impl.ts b/src/vs/workbench/api/node/extHost.api.impl.ts index a4ba38dd2ae..f625545fdf4 100644 --- a/src/vs/workbench/api/node/extHost.api.impl.ts +++ b/src/vs/workbench/api/node/extHost.api.impl.ts @@ -354,7 +354,7 @@ export function createApiFactory( return extHostEditors.getVisibleTextEditors(); }, get activeTerminal() { - return proposedApiFunction(extension, extHostTerminalService.activeTerminal); + return extHostTerminalService.activeTerminal; }, get terminals() { return extHostTerminalService.terminals; @@ -397,9 +397,9 @@ export function createApiFactory( onDidOpenTerminal(listener, thisArg?, disposables?) { return extHostTerminalService.onDidOpenTerminal(listener, thisArg, disposables); }, - onDidChangeActiveTerminal: proposedApiFunction(extension, (listener, thisArg?, disposables?) => { + onDidChangeActiveTerminal(listener, thisArg?, disposables?) { return extHostTerminalService.onDidChangeActiveTerminal(listener, thisArg, disposables); - }), + }, get state() { return extHostWindow.state; },