Skip to content

Commit

Permalink
Fix lint even more
Browse files Browse the repository at this point in the history
  • Loading branch information
kmagiera committed Sep 11, 2024
1 parent 4d7a219 commit 24676ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/vscode-extension/src/debugging/DebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,9 @@ export class DebugAdapter extends DebugSession {
response: DebugProtocol.SetBreakpointsResponse,
args: DebugProtocol.SetBreakpointsArguments
): Promise<void> {
const path = args.source.path as string;
const sourcePath = args.source.path as string;

const previousBreakpoints = this.breakpoints.get(path) || [];
const previousBreakpoints = this.breakpoints.get(sourcePath) || [];

const breakpoints = (args.breakpoints || []).map((bp) => {
const previousBp = previousBreakpoints.find(
Expand All @@ -539,14 +539,14 @@ export class DebugAdapter extends DebugSession {
}
});

this.breakpoints.set(path, breakpoints);
this.breakpoints.set(sourcePath, breakpoints);

const resolvedBreakpoints = await Promise.all<Breakpoint>(
breakpoints.map(async (bp) => {
if (bp.verified) {
return bp;
} else {
const breakpointId = await this.setCDPBreakpoint(path, bp.line, bp.column || 0);
const breakpointId = await this.setCDPBreakpoint(sourcePath, bp.line, bp.column || 0);
if (breakpointId !== null) {
bp.verified = true;
bp.setId(breakpointId);
Expand Down

0 comments on commit 24676ec

Please sign in to comment.