From abd685f54e70a3b3840283a2af3167cb209ef221 Mon Sep 17 00:00:00 2001 From: JasonYeMSFT Date: Thu, 28 Sep 2023 12:16:44 -0700 Subject: [PATCH] Fix context menu command condition (#2193) --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 519e38e1..d903c2e7 100644 --- a/package.json +++ b/package.json @@ -697,7 +697,7 @@ }, { "command": "postgreSQL.deleteDatabase", - "when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresDatabase", + "when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem =~ /postgresDatabase(?![a-z])/i", "group": "1@2" }, { @@ -777,7 +777,7 @@ }, { "command": "postgreSQL.copyConnectionString", - "when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresDatabase", + "when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem =~ /postgresDatabase(?![a-z])/i", "group": "2@1" }, { @@ -817,7 +817,7 @@ }, { "command": "azureDatabases.refresh", - "when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresDatabase", + "when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem =~ /postgresDatabase(?![a-z])/i", "group": "3@1" }, { @@ -887,7 +887,7 @@ }, { "command": "postgreSQL.connectDatabase", - "when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresDatabase", + "when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem =~ /postgresDatabase(?![a-z])/i", "group": "1@1" }, {