mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-26 18:06:43 +01:00
debug: getDebugProtocolBreakpoint: make sure to use the breakpoint id
#99716
This commit is contained in:
@@ -1116,7 +1116,7 @@ export class DebugModel implements IDebugModel {
|
||||
}
|
||||
|
||||
getDebugProtocolBreakpoint(breakpointId: string, sessionId: string): DebugProtocol.Breakpoint | undefined {
|
||||
const bp = this.breakpoints.find(bp => bp.getId());
|
||||
const bp = this.breakpoints.find(bp => bp.getId() === breakpointId);
|
||||
if (bp) {
|
||||
return bp.getDebugProtocolBreakpoint(sessionId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user