Skip to content

Commit 27c16fe

Browse files
committed
Fix issue with VSCode var syntax change . to :
BTW I'm not 100% sure about the need to require vscode 1.10.0. I've reached out to Andre (cc'd you) to see what alternatives we have. Also replaced the deprecated OutDir setting with OutFiles in the extension's launch.json file.
1 parent fd00c13 commit 27c16fe

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.vscode/launch.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
"args": [ "--extensionDevelopmentPath=${workspaceRoot}" ],
1010
"stopOnEntry": false,
1111
"sourceMaps": true,
12-
"outDir": "${workspaceRoot}/out",
12+
"outFiles": ["${workspaceRoot}/out"],
1313
"preLaunchTask": "Build"
1414
},
1515
{
1616
"name": "Attach",
1717
"type": "node",
18+
"request": "attach",
1819
"address": "localhost",
1920
"port": 5858,
2021
"sourceMaps": false

examples/.vscode/launch.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"type": "PowerShell",
3636
"request": "attach",
3737
"name": "PowerShell Attach to Host Process",
38-
"processId": "${command.PickPSHostProcess}",
38+
"processId": "${command:PickPSHostProcess}",
3939
"runspaceId": 1
4040
}
4141
]

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"publisher": "ms-vscode",
66
"description": "Develop PowerShell scripts in Visual Studio Code!",
77
"engines": {
8-
"vscode": "^1.7.0"
8+
"vscode": "^1.10.0"
99
},
1010
"license": "SEE LICENSE IN LICENSE.txt",
1111
"homepage": "https://github.com/PowerShell/vscode-powershell/blob/master/README.md",
@@ -216,7 +216,7 @@
216216
"type": "PowerShell",
217217
"request": "attach",
218218
"name": "PowerShell Attach to Host Process",
219-
"processId": "^\"\\${command.PickPSHostProcess}\"",
219+
"processId": "^\"\\${command:PickPSHostProcess}\"",
220220
"runspaceId": 1
221221
}
222222
},
@@ -266,7 +266,7 @@
266266
"processId": {
267267
"type": "string",
268268
"description": "The process id of the PowerShell host process to attach to. Works only on PowerShell 5 and above.",
269-
"default": "${command.PickPSHostProcess}"
269+
"default": "${command:PickPSHostProcess}"
270270
},
271271
"runspaceId": {
272272
"type": "number",
@@ -289,7 +289,7 @@
289289
"type": "PowerShell",
290290
"request": "attach",
291291
"name": "PowerShell Attach to Host Process",
292-
"processId": "${command.PickPSHostProcess}",
292+
"processId": "${command:PickPSHostProcess}",
293293
"runspaceId": 1
294294
},
295295
{

0 commit comments

Comments
 (0)