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

Method _onDisableSourcemap

src/adapter/debugAdapter.ts:388–405  ·  view source on GitHub ↗
(params: Dap.DisableSourcemapParams)

Source from the content-addressed store, hash-verified

386 }
387
388 private async _onDisableSourcemap(params: Dap.DisableSourcemapParams) {
389 const source = this.sourceContainer.source(params.source);
390 if (!source) {
391 return errors.createSilentError(l10n.t('Source not found'));
392 }
393
394 if (!(source instanceof SourceFromMap)) {
395 return errors.createSilentError(l10n.t('Source not a source map'));
396 }
397
398 for (const compiled of source.compiledToSourceUrl.keys()) {
399 this.sourceContainer.disableSourceMapForSource(compiled, /* permanent= */ true);
400 }
401
402 await this._thread?.refreshStackTrace();
403
404 return {};
405 }
406
407 async _onSource(params: Dap.SourceParams): Promise<Dap.SourceResult | Dap.Error> {
408 if (!params.source) {

Callers 1

constructorMethod · 0.95

Calls 4

refreshStackTraceMethod · 0.80
sourceMethod · 0.65
keysMethod · 0.65

Tested by

no test coverage detected