From 5222e9f4c1f3acaa4ee77c7f96d6bd5c6ad0e02d Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Sun, 7 Feb 2016 12:42:28 -0700 Subject: [PATCH 1/2] Fixes #88 by adding cwd initialConfig and configProps to package.json Also updated examples\launch.json file. Sorry, couldn't resist replacing tabs with spaces. :-) --- package.json | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 94962962bc..83ca0fb059 100644 --- a/package.json +++ b/package.json @@ -125,7 +125,12 @@ "properties": { "program": { "type": "string", - "description": "Workspace relative path to the PowerShell script." + "description": "Absolute path to the PowerShell script to launch under the debugger." + }, + "cwd": { + "type": "string", + "description": "Absolute path to the working directory. Default is the current workspace.", + "default": "." } } } @@ -135,7 +140,8 @@ "name": "PowerShell", "type": "PowerShell", "request": "launch", - "program": "${file}" + "program": "${file}", + "cwd": "${file}" } ] }, @@ -158,7 +164,12 @@ "properties": { "program": { "type": "string", - "description": "Workspace relative path to the PowerShell script." + "description": "Absolute path to the PowerShell script to launch under the debugger." + }, + "cwd": { + "type": "string", + "description": "Absolute path to the working directory. Default is the current workspace.", + "default": "." } } } @@ -168,7 +179,8 @@ "name": "PowerShell x86", "type": "PowerShell x86", "request": "launch", - "program": "${file}" + "program": "${file}", + "cwd": "${file}" } ] } From a6683542b1675cf8da53b2bc5fb898ce740056fa Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Sun, 7 Feb 2016 12:45:13 -0700 Subject: [PATCH 2/2] mend Forget to add the changes to launch.json --- examples/.vscode/launch.json | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/examples/.vscode/launch.json b/examples/.vscode/launch.json index 3f57a48b7d..8027ad3001 100644 --- a/examples/.vscode/launch.json +++ b/examples/.vscode/launch.json @@ -1,11 +1,12 @@ { - "version": "0.2.0", - "configurations": [ - { - "name": "PowerShell", - "type": "PowerShell", - "request": "launch", - "program": "${file}" - } - ] + "version": "0.2.0", + "configurations": [ + { + "name": "PowerShell", + "type": "PowerShell", + "request": "launch", + "program": "${file}", + "cwd": "${file}" + } + ] }