From 3f4efd9eadadc9190e609afc883e8bcb50b0e426 Mon Sep 17 00:00:00 2001 From: Ghislain Beaulac Date: Mon, 28 Aug 2017 21:12:47 -0400 Subject: [PATCH] fix(cli): add VSCode Chrome Debugger to RequireJS/SystemJS --- .../new/buildsystems/cli/editors/vscode.js | 4 +++- lib/resources/content/launch-cli.json | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 lib/resources/content/launch-cli.json diff --git a/lib/commands/new/buildsystems/cli/editors/vscode.js b/lib/commands/new/buildsystems/cli/editors/vscode.js index 2ac538d24..d7bf21941 100644 --- a/lib/commands/new/buildsystems/cli/editors/vscode.js +++ b/lib/commands/new/buildsystems/cli/editors/vscode.js @@ -9,7 +9,9 @@ module.exports = function(project) { } else { project.addToContent( ProjectItem.directory('.vscode').add( - ProjectItem.resource('settings.json', 'content/settings.json') + ProjectItem.resource('settings.json', 'content/settings.json'), + ProjectItem.resource('extensions.json', 'content/extensions.json'), + ProjectItem.resource('launch.json', 'content/launch-cli.json') ) ); } diff --git a/lib/resources/content/launch-cli.json b/lib/resources/content/launch-cli.json new file mode 100644 index 000000000..c7e29baab --- /dev/null +++ b/lib/resources/content/launch-cli.json @@ -0,0 +1,19 @@ +{ + // Use IntelliSense to find out which attributes exist for node debugging + // Use hover for the description of the existing attributes + // For further information visit https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Chrome Debugger", + "type": "chrome", + "request": "launch", + "url": "http://localhost:9000", + "webRoot": "${workspaceRoot}/src", + "userDataDir": "${workspaceRoot}/.chrome", + "sourceMapPathOverrides": { + "../src/*": "${webRoot}/*" + } + } + ] +}