Debug log data being sent
This commit is contained in:
+2
-2
@@ -246,13 +246,13 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp
|
|||||||
this._instantiationService.setService(IOptionsService, this.optionsService);
|
this._instantiationService.setService(IOptionsService, this.optionsService);
|
||||||
this._bufferService = this._instantiationService.createInstance(BufferService);
|
this._bufferService = this._instantiationService.createInstance(BufferService);
|
||||||
this._instantiationService.setService(IBufferService, this._bufferService);
|
this._instantiationService.setService(IBufferService, this._bufferService);
|
||||||
|
this._logService = this._instantiationService.createInstance(LogService);
|
||||||
|
this._instantiationService.setService(ILogService, this._logService);
|
||||||
this._coreService = this._instantiationService.createInstance(CoreService, () => this.scrollToBottom());
|
this._coreService = this._instantiationService.createInstance(CoreService, () => this.scrollToBottom());
|
||||||
this._instantiationService.setService(ICoreService, this._coreService);
|
this._instantiationService.setService(ICoreService, this._coreService);
|
||||||
this._coreService.onData(e => this._onData.fire(e));
|
this._coreService.onData(e => this._onData.fire(e));
|
||||||
this._dirtyRowService = this._instantiationService.createInstance(DirtyRowService);
|
this._dirtyRowService = this._instantiationService.createInstance(DirtyRowService);
|
||||||
this._instantiationService.setService(IDirtyRowService, this._dirtyRowService);
|
this._instantiationService.setService(IDirtyRowService, this._dirtyRowService);
|
||||||
this._logService = this._instantiationService.createInstance(LogService);
|
|
||||||
this._instantiationService.setService(ILogService, this._logService);
|
|
||||||
|
|
||||||
this._setupOptionsListeners();
|
this._setupOptionsListeners();
|
||||||
this._setup();
|
this._setup();
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* @license MIT
|
* @license MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ICoreService, IOptionsService, IBufferService } from 'common/services/Services';
|
import { ICoreService, ILogService, IOptionsService, IBufferService } from 'common/services/Services';
|
||||||
import { EventEmitter, IEvent } from 'common/EventEmitter';
|
import { EventEmitter, IEvent } from 'common/EventEmitter';
|
||||||
import { IDecPrivateModes } from 'common/Types';
|
import { IDecPrivateModes } from 'common/Types';
|
||||||
import { clone } from 'common/Clone';
|
import { clone } from 'common/Clone';
|
||||||
@@ -26,6 +26,7 @@ export class CoreService implements ICoreService {
|
|||||||
// TODO: Move this into a service
|
// TODO: Move this into a service
|
||||||
private readonly _scrollToBottom: () => void,
|
private readonly _scrollToBottom: () => void,
|
||||||
@IBufferService private readonly _bufferService: IBufferService,
|
@IBufferService private readonly _bufferService: IBufferService,
|
||||||
|
@ILogService private readonly _logService: ILogService,
|
||||||
@IOptionsService private readonly _optionsService: IOptionsService
|
@IOptionsService private readonly _optionsService: IOptionsService
|
||||||
) {
|
) {
|
||||||
this.decPrivateModes = clone(DEFAULT_DEC_PRIVATE_MODES);
|
this.decPrivateModes = clone(DEFAULT_DEC_PRIVATE_MODES);
|
||||||
@@ -53,6 +54,7 @@ export class CoreService implements ICoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fire onData API
|
// Fire onData API
|
||||||
|
this._logService.debug('sending data', data);
|
||||||
this._onData.fire(data);
|
this._onData.fire(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user