add onProcessBinary to ptyService
This commit is contained in:
parent
c81420bb37
commit
4155993b36
1 changed files with 7 additions and 1 deletions
|
@ -7,7 +7,7 @@ import { Disposable, toDisposable } from 'vs/base/common/lifecycle';
|
|||
import { IProcessEnvironment } from 'vs/base/common/platform';
|
||||
import { IPtyService, IProcessDataEvent, IShellLaunchConfig, ITerminalDimensionsOverride, ITerminalLaunchError, LocalReconnectConstants, ITerminalsLayoutInfo, IRawTerminalInstanceLayoutInfo, ITerminalTabLayoutInfoById, ITerminalInstanceLayoutInfoById, TerminalShellType } from 'vs/platform/terminal/common/terminal';
|
||||
import { AutoOpenBarrier, Queue, RunOnceScheduler } from 'vs/base/common/async';
|
||||
import { Emitter } from 'vs/base/common/event';
|
||||
import { Emitter, Event } from 'vs/base/common/event';
|
||||
import { TerminalRecorder } from 'vs/platform/terminal/common/terminalRecorder';
|
||||
import { TerminalProcess } from 'vs/platform/terminal/node/terminalProcess';
|
||||
import { ISetTerminalLayoutInfoArgs, ITerminalTabLayoutInfoDto, IProcessDetails, IGetTerminalLayoutInfoArgs, IPtyHostProcessReplayEvent } from 'vs/platform/terminal/common/terminalProcess';
|
||||
|
@ -27,6 +27,8 @@ export class PtyService extends Disposable implements IPtyService {
|
|||
|
||||
private readonly _onProcessData = this._register(new Emitter<{ id: number, event: IProcessDataEvent | string }>());
|
||||
readonly onProcessData = this._onProcessData.event;
|
||||
private readonly _onProcessBinary = this._register(new Emitter<{ id: number, event: string }>());
|
||||
readonly onProcessBinary = this._onProcessBinary.event;
|
||||
private readonly _onProcessReplay = this._register(new Emitter<{ id: number, event: IPtyHostProcessReplayEvent }>());
|
||||
readonly onProcessReplay = this._onProcessReplay.event;
|
||||
private readonly _onProcessExit = this._register(new Emitter<{ id: number, event: number | undefined }>());
|
||||
|
@ -57,6 +59,10 @@ export class PtyService extends Disposable implements IPtyService {
|
|||
this._ptys.clear();
|
||||
}));
|
||||
}
|
||||
onPtyHostExit?: Event<number> | undefined;
|
||||
onPtyHostStart?: Event<void> | undefined;
|
||||
onPtyHostUnresponsive?: Event<void> | undefined;
|
||||
onPtyHostResponsive?: Event<void> | undefined;
|
||||
|
||||
async shutdownAll(): Promise<void> {
|
||||
this.dispose();
|
||||
|
|
Loading…
Reference in a new issue