From aba483bdf828b35bbe1472e59ecab99d86408059 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 28 Mar 2017 08:37:43 -0700 Subject: [PATCH] Add right-click context menu for Run Selection command This change adds a new context menu action in the editor pane for the Run Selection command. Resolves #581. --- package.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package.json b/package.json index b0a2110855..e925ef7912 100644 --- a/package.json +++ b/package.json @@ -149,6 +149,15 @@ "category": "PowerShell" } ], + "menus": { + "editor/context": [ + { + "when": "resourceLangId == powershell", + "command": "PowerShell.RunSelection", + "group": "2_powershell" + } + ] + }, "snippets": [ { "language": "powershell",