Skip to content

Commit

Permalink
[debugService microsoft#113742] variable display on debug session ending
Browse files Browse the repository at this point in the history
- When a session ends, it should focus another session and correctly display variables
- Here, focus the first session and the Thread 1
- Should display variables accordingly

Fix microsoft#113742
  • Loading branch information
yannickowow authored and AiverReaver committed Aug 19, 2021
1 parent 030048a commit 0611f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/debug/browser/debugService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,8 @@ export class DebugService implements IDebugService {

const focusedSession = this.viewModel.focusedSession;
if (focusedSession && focusedSession.getId() === session.getId()) {
const { session } = getStackFrameThreadAndSessionToFocus(this.model, undefined, undefined, undefined, focusedSession);
this.viewModel.setFocus(undefined, undefined, session, false);
const { session, thread, stackFrame } = getStackFrameThreadAndSessionToFocus(this.model, undefined, undefined, undefined, focusedSession);
this.viewModel.setFocus(stackFrame, thread, session, false);
}

if (this.model.getSessions().length === 0) {
Expand Down

0 comments on commit 0611f73

Please sign in to comment.