Skip to content

Commit 5222e9f

Browse files
committed
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. :-)
1 parent 2ce53fc commit 5222e9f

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

package.json

+16-4
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,12 @@
125125
"properties": {
126126
"program": {
127127
"type": "string",
128-
"description": "Workspace relative path to the PowerShell script."
128+
"description": "Absolute path to the PowerShell script to launch under the debugger."
129+
},
130+
"cwd": {
131+
"type": "string",
132+
"description": "Absolute path to the working directory. Default is the current workspace.",
133+
"default": "."
129134
}
130135
}
131136
}
@@ -135,7 +140,8 @@
135140
"name": "PowerShell",
136141
"type": "PowerShell",
137142
"request": "launch",
138-
"program": "${file}"
143+
"program": "${file}",
144+
"cwd": "${file}"
139145
}
140146
]
141147
},
@@ -158,7 +164,12 @@
158164
"properties": {
159165
"program": {
160166
"type": "string",
161-
"description": "Workspace relative path to the PowerShell script."
167+
"description": "Absolute path to the PowerShell script to launch under the debugger."
168+
},
169+
"cwd": {
170+
"type": "string",
171+
"description": "Absolute path to the working directory. Default is the current workspace.",
172+
"default": "."
162173
}
163174
}
164175
}
@@ -168,7 +179,8 @@
168179
"name": "PowerShell x86",
169180
"type": "PowerShell x86",
170181
"request": "launch",
171-
"program": "${file}"
182+
"program": "${file}",
183+
"cwd": "${file}"
172184
}
173185
]
174186
}

0 commit comments

Comments
 (0)