Skip to content

Commit

Permalink
Fix context menu command condition (#2193)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonYeMSFT authored Sep 28, 2023
1 parent 29a48d0 commit abd685f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
{
Expand Down Expand Up @@ -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"
},
{
Expand Down Expand Up @@ -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"
},
{
Expand Down Expand Up @@ -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"
},
{
Expand Down

0 comments on commit abd685f

Please sign in to comment.