Skip to content

Commit

Permalink
fixes #82143
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Oct 18, 2019
1 parent 60633f3 commit fca98f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vs/workbench/contrib/debug/browser/debugSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,12 @@ export class DebugSession implements IDebugSession {
}
} else if (event.body.reason === 'exited') {
this.model.clearThreads(this.getId(), true, event.body.threadId);
const viewModel = this.debugService.getViewModel();
const focusedThread = viewModel.focusedThread;
if (focusedThread && event.body.threadId === focusedThread.threadId) {
// De-focus the thread in case it was focused
this.debugService.focusStackFrame(undefined, undefined, viewModel.focusedSession, false);
}
}
}));

Expand Down

0 comments on commit fca98f0

Please sign in to comment.