提交 a4f8a165 编写于 作者: I isidor

debug: hide console on end of debug seassion

fixes #3829
上级 af13ed5d
......@@ -692,6 +692,10 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
if (this.session) {
const bpsExist = this.model.getBreakpoints().length > 0;
this.telemetryService.publicLog('debugSessionStop', { type: this.session.getType(), success: this.session.emittedStopped || !bpsExist, sessionLengthInSeconds: this.session.getLengthInSeconds(), breakpointCount: this.model.getBreakpoints().length, watchExpressionsCount: this.model.getWatchExpressions().length });
const panel = this.panelService.getActivePanel();
if (!this.session.restarted && panel && panel.getId() === debug.REPL_ID) {
this.partService.setPanelHidden(true);
}
}
this.session = null;
this.partService.removeClass('debugging');
......
......@@ -28,6 +28,7 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes
private startTime: number;
private stopServerPending: boolean;
public isAttach: boolean;
public restarted: boolean;
public capabilities: DebugProtocol.Capabilites;
constructor(
......@@ -140,6 +141,7 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes
if ((this.serverProcess || this.socket) && !this.stopServerPending) {
// point of no return: from now on don't report any errors
this.stopServerPending = true;
this.restarted = restart;
return this.send('disconnect', { restart: restart }).then(() => this.stopServer(), () => this.stopServer());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册