MCPcopy
hub / github.com/microsoft/vscode-js-debug / waitForSource

Method waitForSource

src/test/test.ts:294–299  ·  view source on GitHub ↗
(filter?: string)

Source from the content-addressed store, hash-verified

292 }
293
294 waitForSource(filter?: string): Promise<Dap.LoadedSourceEventParams> {
295 return this.dap.once('loadedSource', event => {
296 return filter === undefined
297 || forceForwardSlashes(event.source.path || '').includes(filter);
298 });
299 }
300
301 workspacePath(relative: string): string {
302 return this._root.workspacePath(relative);

Callers

nothing calls this directly

Calls 2

forceForwardSlashesFunction · 0.90
onceMethod · 0.65

Tested by

no test coverage detected