only report on loglevel debug, explain events

This commit is contained in:
Jörg Breitbart
2019-08-17 13:30:54 +02:00
parent ae914c17d8
commit 82d1bd86da
4 changed files with 22 additions and 2 deletions
+4 -2
View File
@@ -850,11 +850,13 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp
// apply global changes on events
this.mouseEvents = events;
if (events) {
this._logService.info('Binding to mouse events:', events);
if (this.optionsService.options.logLevel === 'debug') {
this._logService.debug('Binding to mouse events:', this._coreMouseService.explainEvents(events));
}
this.element.classList.add('enable-mouse-events');
this._selectionService.disable();
} else {
this._logService.info('Unbinding from mouse events.');
this._logService.debug('Unbinding from mouse events.');
this.element.classList.remove('enable-mouse-events');
this._selectionService.enable();
}