未验证 提交 b6a2131e 编写于 作者: D Daniel Imms 提交者: GitHub

Merge pull request #78400 from microsoft/tyriar/toggle_fix

Disable esc sequence logging when toggling off
......@@ -1445,7 +1445,8 @@ export class TerminalInstance implements ITerminalInstance {
}
public toggleEscapeSequenceLogging(): void {
this._xterm.setOption('logLevel', 'debug');
const isDebug = this._xterm.getOption('logLevel') === 'debug';
this._xterm.setOption('logLevel', isDebug ? 'info' : 'debug');
}
public getInitialCwd(): Promise<string> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册