From 0434f8493082282e10a1ee7d25449b26c964fc09 Mon Sep 17 00:00:00 2001 From: Stephen Valdinger Date: Thu, 3 Oct 2019 11:49:21 -0400 Subject: [PATCH 1/3] Start of adding new context menu --- package.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package.json b/package.json index f81f6f6f..8fdedaf5 100644 --- a/package.json +++ b/package.json @@ -143,8 +143,14 @@ "when": "explorerResourceIsFolder", "command": "chocolatey.new", "group": "2_workspace" + }, + { + "when": "!explorerResourceIsFolder", + "command": "chocolatey.push", + "group": "2_workspace" } ] + }, "snippets": [ { From e5867e96ad0d216aa2d8a67000eafd098f3ad12e Mon Sep 17 00:00:00 2001 From: Stephen Valdinger Date: Tue, 8 Oct 2019 21:55:42 +0000 Subject: [PATCH 2/3] Add right-click context menu for nupkg. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8fdedaf5..8c30e22e 100644 --- a/package.json +++ b/package.json @@ -145,7 +145,7 @@ "group": "2_workspace" }, { - "when": "!explorerResourceIsFolder", + "when": "resourceFilename =~ /(?<=\\.)nupkg/", "command": "chocolatey.push", "group": "2_workspace" } From e5ee7e0ec69bf1cc68112e0202a245286cf0d6c1 Mon Sep 17 00:00:00 2001 From: Stephen Valdinger Date: Tue, 8 Oct 2019 22:14:27 +0000 Subject: [PATCH 3/3] Add context menu for nuspec pack as well --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 8c30e22e..a500f292 100644 --- a/package.json +++ b/package.json @@ -148,6 +148,11 @@ "when": "resourceFilename =~ /(?<=\\.)nupkg/", "command": "chocolatey.push", "group": "2_workspace" + }, + { + "when": "resourceFilename =~ /(?<=\\.)nuspec/", + "command": "chocolatey.pack", + "group": "2_workspace" } ]