Merge pull request #131016 from yannickowow/main

[debugService #113742] variable display on debug session ending
This commit is contained in:
Isidor Nikolic 2021-08-17 20:10:20 +02:00 committed by GitHub
commit fa2b273135
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {