diff --git a/package.json b/package.json index a36d2c9e..87b0a21b 100644 --- a/package.json +++ b/package.json @@ -662,7 +662,7 @@ "view/item/context": [ { "command": "kdb.connect", - "when": "view == kdb-servers && viewItem not in kdb.connected", + "when": "view == kdb-servers && viewItem not in kdb.connected && (viewItem in kdb.rootNodes || viewItem in kdb.insightsNodes)", "group": "connection@1" }, {