提交 37f689ce 编写于 作者: A Andre Weinand

remove paranoia code after fix for #69128

上级 2c445297
......@@ -36,11 +36,7 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb
this._proxy = extHostContext.getProxy(ExtHostContext.ExtHostDebugService);
this._toDispose = [];
this._toDispose.push(debugService.onDidNewSession(session => {
if (session) {
this._proxy.$acceptDebugSessionStarted(this.getSessionDto(session));
} else {
console.error('undefined session received in onDidNewSession');
}
this._proxy.$acceptDebugSessionStarted(this.getSessionDto(session));
}));
// Need to start listening early to new session events because a custom event can come while a session is initialising
this._toDispose.push(debugService.onWillNewSession(session => {
......
......@@ -601,11 +601,7 @@ export class ExtHostDebugService implements ExtHostDebugServiceShape {
public async $acceptDebugSessionStarted(sessionDto: IDebugSessionDto): Promise<void> {
const session = await this.getSession(sessionDto);
if (session) {
this._onDidStartDebugSession.fire(session);
} else {
console.error('undefined session received in acceptDebugSessionStarted'); // should not happen (but see #69128)
}
this._onDidStartDebugSession.fire(session);
}
public async $acceptDebugSessionTerminated(sessionDto: IDebugSessionDto): Promise<void> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册