Skip to content

Commit aaf342d

Browse files
committed
debug: do not force fire onDidChangeState on stop session
1 parent c002ca6 commit aaf342d

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/vs/workbench/parts/debug/electron-browser/debugService.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,6 @@ export class DebugService implements IDebugService {
544544

545545
restartSession(session: IDebugSession, restartData?: any): TPromise<any> {
546546

547-
548547
return this.textFileService.saveAll().then(() => {
549548

550549
const unresolvedConfiguration = session.unresolvedConfiguration;
@@ -610,12 +609,7 @@ export class DebugService implements IDebugService {
610609
}
611610

612611
const sessions = this.model.getSessions();
613-
if (sessions.length) {
614-
return TPromise.join(sessions.map(s => s.terminate()));
615-
}
616-
617-
this._onDidChangeState.fire(); // TODO@AW why state change?
618-
return undefined;
612+
return TPromise.join(sessions.map(s => s.terminate()));
619613
}
620614

621615
private substituteVariables(launch: ILaunch | undefined, config: IConfig): TPromise<IConfig> {

0 commit comments

Comments
 (0)