diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index 2e1b0ece5fa12900997618ede41e3cb53030caf0..d230fff49f48111e23106e33a27cfe94b561f927 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -3029,16 +3029,6 @@ declare namespace vscode { dispose(): void; } - /** - * A configuration describing a terminal within the integrated terminal. - */ - export interface TerminalConfiguration { - /** - * A human-readable string which will be used to represent the terminal in the UI. - */ - name?: string - } - /** * Represents an extension. * @@ -3501,10 +3491,10 @@ declare namespace vscode { /** * Creates a [Terminal](#Terminal). * - * @param configuration A configuration object for the terminal. + * @param name Optional human-readable string which will be used to represent the terminal in the UI. * @return A new Terminal. */ - export function createTerminal(configuration: TerminalConfiguration): Terminal; + export function createTerminal(name?: string): Terminal; } /** diff --git a/src/vs/workbench/api/node/extHost.api.impl.ts b/src/vs/workbench/api/node/extHost.api.impl.ts index 3faf6fa5882a033502abcc42cc68a12a1b9356e3..f4c1b144ae07f4af5cf18af735f7a62c4f8e8b92 100644 --- a/src/vs/workbench/api/node/extHost.api.impl.ts +++ b/src/vs/workbench/api/node/extHost.api.impl.ts @@ -258,8 +258,8 @@ export class ExtHostAPIImplementation { createOutputChannel(name: string): vscode.OutputChannel { return extHostOutputService.createOutputChannel(name); }, - createTerminal(configuration: vscode.TerminalConfiguration): vscode.Terminal { - return extHostTerminalService.createTerminal(configuration); + createTerminal(name?: string): vscode.Terminal { + return extHostTerminalService.createTerminal(name); } }; diff --git a/src/vs/workbench/api/node/extHostTerminalService.ts b/src/vs/workbench/api/node/extHostTerminalService.ts index 635276bd07cc9e7430cc66695315948a8a853e4b..e1dead17d1b98e3a2f7d02d50f8fbcac1f4ebb64 100644 --- a/src/vs/workbench/api/node/extHostTerminalService.ts +++ b/src/vs/workbench/api/node/extHostTerminalService.ts @@ -85,8 +85,8 @@ export class ExtHostTerminalService { this._proxy = threadService.get(MainContext.MainThreadTerminalService); } - public createTerminal(configuration: vscode.TerminalConfiguration): vscode.Terminal { - return new ExtHostTerminal(this._proxy, -1, configuration.name); + public createTerminal(name?: string): vscode.Terminal { + return new ExtHostTerminal(this._proxy, -1, name); } }