mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Implement dispose and hide
This commit is contained in:
@@ -29,6 +29,19 @@ export class MainThreadTerminalService extends MainThreadTerminalServiceShape {
|
||||
});
|
||||
}
|
||||
|
||||
public $hide(terminalId: number): void {
|
||||
this._terminalService.hide();
|
||||
}
|
||||
|
||||
public $dispose(terminalId: number): void {
|
||||
// TODO: This could be improved by not first showing the terminal to be disposed
|
||||
var self = this;
|
||||
this._terminalService.show(false).then((terminalPanel) => {
|
||||
terminalPanel.setActiveTerminalById(terminalId);
|
||||
self._terminalService.close();
|
||||
});;
|
||||
}
|
||||
|
||||
public $sendText(terminalId: number, text: string, addNewLine: boolean): void {
|
||||
this._terminalService.show(false).then((terminalPanel) => {
|
||||
terminalPanel.setActiveTerminalById(terminalId);
|
||||
|
||||
Reference in New Issue
Block a user