Revert "Remove name from terminal API since it's static"

This reverts commit 2c95aed6eb.
This commit is contained in:
Daniel Imms
2016-08-18 14:11:47 -07:00
parent d3dd3c6083
commit 2fb2d9a5dd
2 changed files with 12 additions and 2 deletions

View File

@@ -11,11 +11,14 @@ import {MainContext, MainThreadTerminalServiceShape} from './extHost.protocol';
export class ExtHostTerminal implements vscode.Terminal {
public name: string;
private _id: number;
private _proxy: MainThreadTerminalServiceShape;
private _disposed: boolean;
constructor(proxy: MainThreadTerminalServiceShape, id: number) {
constructor(proxy: MainThreadTerminalServiceShape, id: number, name?: string) {
this.name = name;
this._id = id;
this._proxy = proxy;
}
@@ -50,7 +53,7 @@ export class ExtHostTerminalService {
public createTerminal(name?: string): TPromise<vscode.Terminal> {
return this._proxy.$createTerminal(name).then((terminalId) => {
return new ExtHostTerminal(this._proxy, terminalId);
return new ExtHostTerminal(this._proxy, terminalId, name);
});
}
}