Only focus on new session when there is no currently focused session

fixes #128132
This commit is contained in:
isidor 2021-08-30 14:14:09 +02:00
parent 7443bb5c8c
commit b64b1821ae
No known key found for this signature in database
GPG key ID: F9280366A8370105

View file

@ -602,7 +602,7 @@ export class DebugService implements IDebugService {
const launchJsonExists = !!session.root && !!this.configurationService.getValue<IGlobalConfig>('launch', { resource: session.root.uri });
await this.telemetry.logDebugSessionStart(dbgr!, launchJsonExists);
if (forceFocus || !this.viewModel.focusedSession || session.parentSession === this.viewModel.focusedSession) {
if (forceFocus || !this.viewModel.focusedSession) {
await this.focusStackFrame(undefined, undefined, session);
}
} catch (err) {