Skip to content

Commit

Permalink
debug: hide console on end of debug seassion
Browse files Browse the repository at this point in the history
fixes #3829
  • Loading branch information
isidorn committed Mar 8, 2016
1 parent af13ed5 commit a4f8a16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vs/workbench/parts/debug/electron-browser/debugService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 2 additions & 0 deletions src/vs/workbench/parts/debug/node/rawDebugSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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());
}

Expand Down

0 comments on commit a4f8a16

Please sign in to comment.