diff --git a/packages/vscode-extension/src/debugging/BreakpointsController.ts b/packages/vscode-extension/src/debugging/BreakpointsController.ts index 78f8b7fd3..9e311ece2 100644 --- a/packages/vscode-extension/src/debugging/BreakpointsController.ts +++ b/packages/vscode-extension/src/debugging/BreakpointsController.ts @@ -2,13 +2,13 @@ import { Breakpoint } from "@vscode/debugadapter"; import { DebugProtocol } from "@vscode/debugprotocol"; import { SourceMapConsumer } from "source-map"; import { CDPBreakpoint } from "./CDPBreakpoint"; -import { SourceMapController } from "./SourceMapsController"; +import { SourceMapsRegistry } from "./SourceMapsRegistry"; import { CDPSession } from "./CDPSession"; export class BreakpointsController { private breakpoints = new Map>(); - constructor(private sourceMapController: SourceMapController, private cdpSession: CDPSession) {} + constructor(private sourceMapController: SourceMapsRegistry, private cdpSession: CDPSession) {} public updateBreakpointsInSource(sourceURL: string, consumer: SourceMapConsumer) { // this method gets called after we are informed that a new script has been parsed. If we diff --git a/packages/vscode-extension/src/debugging/CDPBreakpoint.ts b/packages/vscode-extension/src/debugging/CDPBreakpoint.ts index da67bd1b3..a3a4a10fe 100644 --- a/packages/vscode-extension/src/debugging/CDPBreakpoint.ts +++ b/packages/vscode-extension/src/debugging/CDPBreakpoint.ts @@ -1,5 +1,5 @@ import { Breakpoint, Source } from "@vscode/debugadapter"; -import { SourceMapController } from "./SourceMapsController"; +import { SourceMapsRegistry } from "./SourceMapsRegistry"; import { Logger } from "../Logger"; import { CDPSession } from "./CDPSession"; @@ -12,7 +12,7 @@ export class CDPBreakpoint extends Breakpoint { constructor( private cdpSession: CDPSession, - private sourceMapController: SourceMapController, + private sourceMapController: SourceMapsRegistry, verified: boolean, line: number, column?: number, diff --git a/packages/vscode-extension/src/debugging/DebugAdapter.ts b/packages/vscode-extension/src/debugging/DebugAdapter.ts index 724867e62..6042e49b8 100644 --- a/packages/vscode-extension/src/debugging/DebugAdapter.ts +++ b/packages/vscode-extension/src/debugging/DebugAdapter.ts @@ -22,7 +22,7 @@ import { CDPRemoteObject, } from "./cdp"; import { VariableStore } from "./variableStore"; -import { SourceMapController } from "./SourceMapsController"; +import { SourceMapsRegistry } from "./SourceMapsRegistry"; import { BreakpointsController } from "./BreakpointsController"; import { CDPSession } from "./CDPSession"; @@ -40,7 +40,7 @@ export class DebugAdapter extends DebugSession { private variableStore: VariableStore = new VariableStore(); private cdpSession: CDPSession; - private sourceMapController: SourceMapController; + private sourceMapController: SourceMapsRegistry; private breakpointsController: BreakpointsController; @@ -61,7 +61,7 @@ export class DebugAdapter extends DebugSession { this.handleIncomingCDPMethodCalls ); - this.sourceMapController = new SourceMapController( + this.sourceMapController = new SourceMapsRegistry( configuration.expoPreludeLineCount, configuration.sourceMapAliases ); diff --git a/packages/vscode-extension/src/debugging/SourceMapsController.ts b/packages/vscode-extension/src/debugging/SourceMapsRegistry.ts similarity index 99% rename from packages/vscode-extension/src/debugging/SourceMapsController.ts rename to packages/vscode-extension/src/debugging/SourceMapsRegistry.ts index 87c6095eb..78a5dc1a5 100644 --- a/packages/vscode-extension/src/debugging/SourceMapsController.ts +++ b/packages/vscode-extension/src/debugging/SourceMapsRegistry.ts @@ -14,7 +14,7 @@ function compareIgnoringHost(url1: string, url2: string) { } } -export class SourceMapController { +export class SourceMapsRegistry { private sourceMaps: Array<[string, string, SourceMapConsumer, number]> = []; private sourceMapFilePaths: Set = new Set();