From 54fcec460f30999809d1c37d8de64e155dd8b8f0 Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Sun, 7 Feb 2016 15:23:37 -0700 Subject: [PATCH 1/2] Fixes #24 - you can now use the launch.json args prop to send args to the script. --- examples/.vscode/launch.json | 1 + package.json | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/examples/.vscode/launch.json b/examples/.vscode/launch.json index 8027ad3001..3684ffaa6b 100644 --- a/examples/.vscode/launch.json +++ b/examples/.vscode/launch.json @@ -6,6 +6,7 @@ "type": "PowerShell", "request": "launch", "program": "${file}", + "args": [], "cwd": "${file}" } ] diff --git a/package.json b/package.json index 83ca0fb059..c8b3988306 100644 --- a/package.json +++ b/package.json @@ -127,6 +127,14 @@ "type": "string", "description": "Absolute path to the PowerShell script to launch under the debugger." }, + "args": { + "type": "array", + "description": "Command line arguments to pass to the PowerShell script.", + "items": { + "type": "string" + }, + "default": [] + }, "cwd": { "type": "string", "description": "Absolute path to the working directory. Default is the current workspace.", @@ -141,6 +149,7 @@ "type": "PowerShell", "request": "launch", "program": "${file}", + "args": [], "cwd": "${file}" } ] @@ -166,6 +175,14 @@ "type": "string", "description": "Absolute path to the PowerShell script to launch under the debugger." }, + "args": { + "type": "array", + "description": "Command line arguments to pass to the PowerShell script.", + "items": { + "type": "string" + }, + "default": [] + }, "cwd": { "type": "string", "description": "Absolute path to the working directory. Default is the current workspace.", @@ -180,6 +197,7 @@ "type": "PowerShell x86", "request": "launch", "program": "${file}", + "args": [], "cwd": "${file}" } ] From bf83a3fc63d274cbabb6376def9e2229a8b28895 Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Sun, 7 Feb 2016 15:27:51 -0700 Subject: [PATCH 2/2] Removed an unnecessary blank line. --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index c8b3988306..9c9408b06e 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,6 @@ "key": "ctrl+K ctrl+f", "when": "editorTextFocus && editorLangId == 'powershell'" } - ], "commands": [ {