Skip to content

Commit a1a805f

Browse files
committed
Merge pull request #89 from rkeithhill/rkeithhill/add-cwd-args-dbgparams
Fixes #88 by adding cwd initialConfig and configProps to package.json
2 parents 2ce53fc + a668354 commit a1a805f

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

examples/.vscode/launch.json

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
2-
"version": "0.2.0",
3-
"configurations": [
4-
{
5-
"name": "PowerShell",
6-
"type": "PowerShell",
7-
"request": "launch",
8-
"program": "${file}"
9-
}
10-
]
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "PowerShell",
6+
"type": "PowerShell",
7+
"request": "launch",
8+
"program": "${file}",
9+
"cwd": "${file}"
10+
}
11+
]
1112
}

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)