We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3da594a + 9a3ee49 commit 86ad519Copy full SHA for 86ad519
src/common/InputHandler.ts
@@ -544,7 +544,13 @@ export class InputHandler extends Disposable implements IInputHandler {
544
}
545
546
547
- this._logService.debug('parsing data', data);
+ // Log debug data, the log level gate is to prevent extra work in this hot path
548
+ if (this._logService.logLevel <= LogLevelEnum.DEBUG) {
549
+ this._logService.debug(`parsing data${typeof data === 'string' ? ` "${data}"` : ''}`, typeof data === 'string'
550
+ ? data.split('').map(e => e.charCodeAt(0))
551
+ : data
552
+ );
553
+ }
554
555
// resize input buffer if needed
556
if (this._parseBuffer.length < data.length) {
0 commit comments