mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
protect against undefined session; fixes #69128
This commit is contained in:
@@ -593,7 +593,11 @@ export class ExtHostDebugService implements ExtHostDebugServiceShape {
|
||||
|
||||
public async $acceptDebugSessionStarted(sessionDto: IDebugSessionDto): Promise<void> {
|
||||
const session = await this.getSession(sessionDto);
|
||||
this._onDidStartDebugSession.fire(session);
|
||||
if (session) {
|
||||
this._onDidStartDebugSession.fire(session);
|
||||
} else {
|
||||
console.error('undefined session received in acceptDebugSessionStarted'); // should not happen (but see #69128)
|
||||
}
|
||||
}
|
||||
|
||||
public async $acceptDebugSessionTerminated(sessionDto: IDebugSessionDto): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user