From 27c16fe2a59bd9735eea8e9a7e6f5cde7290ce3c Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Sun, 5 Mar 2017 13:42:53 -0700 Subject: [PATCH] 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. --- .vscode/launch.json | 3 ++- examples/.vscode/launch.json | 2 +- package.json | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index c780d1a25e..b7ac54c03a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,12 +9,13 @@ "args": [ "--extensionDevelopmentPath=${workspaceRoot}" ], "stopOnEntry": false, "sourceMaps": true, - "outDir": "${workspaceRoot}/out", + "outFiles": ["${workspaceRoot}/out"], "preLaunchTask": "Build" }, { "name": "Attach", "type": "node", + "request": "attach", "address": "localhost", "port": 5858, "sourceMaps": false diff --git a/examples/.vscode/launch.json b/examples/.vscode/launch.json index 8abdca1c9d..264dd97dd2 100644 --- a/examples/.vscode/launch.json +++ b/examples/.vscode/launch.json @@ -35,7 +35,7 @@ "type": "PowerShell", "request": "attach", "name": "PowerShell Attach to Host Process", - "processId": "${command.PickPSHostProcess}", + "processId": "${command:PickPSHostProcess}", "runspaceId": 1 } ] diff --git a/package.json b/package.json index 9ef51a8075..4be8ff562a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "publisher": "ms-vscode", "description": "Develop PowerShell scripts in Visual Studio Code!", "engines": { - "vscode": "^1.7.0" + "vscode": "^1.10.0" }, "license": "SEE LICENSE IN LICENSE.txt", "homepage": "https://github.com/PowerShell/vscode-powershell/blob/master/README.md", @@ -216,7 +216,7 @@ "type": "PowerShell", "request": "attach", "name": "PowerShell Attach to Host Process", - "processId": "^\"\\${command.PickPSHostProcess}\"", + "processId": "^\"\\${command:PickPSHostProcess}\"", "runspaceId": 1 } }, @@ -266,7 +266,7 @@ "processId": { "type": "string", "description": "The process id of the PowerShell host process to attach to. Works only on PowerShell 5 and above.", - "default": "${command.PickPSHostProcess}" + "default": "${command:PickPSHostProcess}" }, "runspaceId": { "type": "number", @@ -289,7 +289,7 @@ "type": "PowerShell", "request": "attach", "name": "PowerShell Attach to Host Process", - "processId": "${command.PickPSHostProcess}", + "processId": "${command:PickPSHostProcess}", "runspaceId": 1 }, {