This commit is contained in:
isidor 2019-06-07 11:55:23 +02:00
parent 2c14471b5d
commit 5ef80a9acd

View file

@ -432,9 +432,6 @@ export class DebugService implements IDebugService {
return this.launchOrAttachToSession(session).then(() => {
// since the initialized response has arrived announce the new Session (including extensions)
this._onDidNewSession.fire(session);
const internalConsoleOptions = session.configuration.internalConsoleOptions || this.configurationService.getValue<IDebugConfiguration>('debug').internalConsoleOptions;
if (internalConsoleOptions === 'openOnSessionStart' || (this.viewModel.firstSessionStart && internalConsoleOptions === 'openOnFirstSessionStart')) {
this.panelService.openPanel(REPL_ID, false);
@ -448,6 +445,9 @@ export class DebugService implements IDebugService {
this.viewModel.setMultiSessionView(true);
}
// since the initialized response has arrived announce the new Session (including extensions)
this._onDidNewSession.fire(session);
return this.telemetryDebugSessionStart(root, session.configuration.type);
}).then(() => true, (error: Error | string) => {