[go: nahoru, domu]

Skip to content

Commit

Permalink
debug: fire onDidNewSession when a session restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Sep 27, 2018
1 parent c984412 commit a7996af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vs/workbench/parts/debug/electron-browser/debugService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,10 @@ export class DebugService implements IDebugService {
session.setConfiguration({ resolved, unresolved });
session.configuration.__restart = restartData;

this.launchOrAttachToSession(session, shouldFocus)
.then(() => c(null), err => e(err));
this.launchOrAttachToSession(session, shouldFocus).then(() => {
this._onDidNewSession.fire(session);
c(null);
}, err => e(err));
});
}, 300);
});
Expand Down

0 comments on commit a7996af

Please sign in to comment.