(params: Dap.DisableSourcemapParams)
| 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) { |
no test coverage detected