提交 9754563e 编写于 作者: I isidor

debug: add session to model immediatly

fixes #62038
上级 591c2893
......@@ -18,7 +18,6 @@ import { IWorkspaceFolder } from 'vs/platform/workspace/common/workspace';
import { convertToVSCPaths, convertToDAPaths, stringToUri, uriToString } from 'vs/workbench/parts/debug/common/debugUtils';
import { deepClone } from 'vs/base/common/objects';
@extHostNamedCustomer(MainContext.MainThreadDebugService)
export class MainThreadDebugService implements MainThreadDebugServiceShape, IDebugAdapterProvider {
......
......@@ -423,7 +423,7 @@ export class DebugService implements IDebugService {
private doCreateSession(root: IWorkspaceFolder, configuration: { resolved: IConfig, unresolved: IConfig }): TPromise<boolean> {
const session = this.instantiationService.createInstance(DebugSession, configuration, root, this.model);
this.model.addSession(session);
// register listeners as the very first thing!
this.registerSessionListeners(session);
......
......@@ -166,7 +166,6 @@ export class DebugSession implements IDebugSession {
supportsRunInTerminalRequest: true, // #10574
locale: platform.locale
}).then(() => {
this.model.addSession(this);
this._onDidChangeState.fire();
this.model.setExceptionBreakpoints(this.raw.capabilities.exceptionBreakpointFilters);
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册