Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
Merge branch 'core5' - fix microsoft/vscode#49472
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Jun 1, 2018
2 parents 4c0aa81 + d6a5f20 commit 7beeec1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/chromeDebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ export class ChromeDebugAdapter extends CoreDebugAdapter {
}

public commonArgs(args: ICommonRequestArgs): void {
if (!args.webRoot && args.pathMapping && args.pathMapping['/']) {
// Adapt pathMapping['/'] as the webRoot when not set, since webRoot is explicitly used in many places
args.webRoot = args.pathMapping['/'];
if (args.webRoot && (!args.pathMapping || !args.pathMapping['/'])) {
args.pathMapping = args.pathMapping || {};
args.pathMapping['/'] = args.webRoot;
}

args.sourceMaps = typeof args.sourceMaps === 'undefined' || args.sourceMaps;
Expand Down
1 change: 1 addition & 0 deletions src/chromeDebugInterfaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as Core from 'vscode-chrome-debug-core';
import { DebugProtocol } from 'vscode-debugprotocol';

export interface ICommonRequestArgs extends Core.ICommonRequestArgs {
webRoot?: string;
disableNetworkCache?: boolean;
urlFilter?: string;
}
Expand Down
4 changes: 3 additions & 1 deletion testapp/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@
"node_modules": true,
"bin": true,
"out": true
}
},

"tslint.enable": false
}

0 comments on commit 7beeec1

Please sign in to comment.