From 33eb94b1ff4cdb7c84e268a519c839a9d064a9f0 Mon Sep 17 00:00:00 2001 From: Kelvin Schoofs Date: Tue, 7 Jul 2020 20:27:48 +0200 Subject: [PATCH] Fix #172 regarding new/configure context menu actions in explorer view not working anymore --- package.json | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index b425703..be44865 100644 --- a/package.json +++ b/package.json @@ -114,12 +114,19 @@ "group": "SSH FS@7" } ], - "view/item/context": [ + "view/title": [ { "command": "sshfs.new", - "when": "view == 'sshfs-configs' && !viewItem", + "when": "view == 'sshfs-configs'", "group": "SSH FS@1" }, + { + "command": "sshfs.settings", + "when": "view == 'sshfs-configs' && !(viewItem)", + "group": "SSH FS@6" + } + ], + "view/item/context": [ { "command": "sshfs.connect", "when": "view == 'sshfs-configs' && viewItem == inactive", @@ -139,11 +146,6 @@ "command": "sshfs.configure", "when": "view == 'sshfs-configs' && viewItem", "group": "SSH FS@5" - }, - { - "command": "sshfs.settings", - "when": "view == 'sshfs-configs' && !viewItem", - "group": "SSH FS@6" } ] }, @@ -203,4 +205,4 @@ "ssh2": "^0.8.9", "winreg": "^1.2.4" } -} +} \ No newline at end of file