mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
Implement dispose and hide
This commit is contained in:
@@ -15,6 +15,7 @@ export class ExtHostTerminal implements vscode.Terminal {
|
||||
|
||||
private _id: number;
|
||||
private _proxy: MainThreadTerminalServiceShape;
|
||||
private _disposed: boolean;
|
||||
|
||||
constructor(proxy: MainThreadTerminalServiceShape, id: number, name?: string) {
|
||||
this.name = name;
|
||||
@@ -31,11 +32,14 @@ export class ExtHostTerminal implements vscode.Terminal {
|
||||
}
|
||||
|
||||
public hide(): void {
|
||||
// TODO: Implement
|
||||
this._proxy.$hide(this._id);
|
||||
}
|
||||
|
||||
public dispose(): void {
|
||||
// TODO: Implement
|
||||
if (!this._disposed) {
|
||||
this._disposed = true;
|
||||
this._proxy.$dispose(this._id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user