This repository was archived by the owner on Dec 6, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -187,9 +187,9 @@ export class ChromeDebugAdapter extends CoreDebugAdapter {
187187 }
188188
189189 public commonArgs ( args : ICommonRequestArgs ) : void {
190- if ( ! args . webRoot && args . pathMapping && args . pathMapping [ '/' ] ) {
191- // Adapt pathMapping['/'] as the webRoot when not set, since webRoot is explicitly used in many places
192- args . webRoot = args . pathMapping [ '/' ] ;
190+ if ( args . webRoot && ( ! args . pathMapping || ! args . pathMapping [ '/' ] ) ) {
191+ args . pathMapping = args . pathMapping || { } ;
192+ args . pathMapping [ '/' ] = args . webRoot ;
193193 }
194194
195195 args . sourceMaps = typeof args . sourceMaps === 'undefined' || args . sourceMaps ;
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import * as Core from 'vscode-chrome-debug-core';
66import { DebugProtocol } from 'vscode-debugprotocol' ;
77
88export interface ICommonRequestArgs extends Core . ICommonRequestArgs {
9+ webRoot ?: string ;
910 disableNetworkCache ?: boolean ;
1011 urlFilter ?: string ;
1112}
Original file line number Diff line number Diff line change 1010 "node_modules" : true ,
1111 "bin" : true ,
1212 "out" : true
13- }
13+ },
14+
15+ "tslint.enable" : false
1416}
You can’t perform that action at this time.
0 commit comments