Azure Resource Explorer: fixed regular expressions in context item rules. (#3003)

* Azure Resource Explorer: fixed a bug in refresh button rule.

* Azure resource explorer: fixed regular expressions in context item rules.
This commit is contained in:
Vincent Feng
2018-10-26 14:43:41 +08:00
committed by GitHub
parent afb6862035
commit 533c0bf0b1

View File

@@ -125,12 +125,12 @@
"view/item/context": [ "view/item/context": [
{ {
"command": "azureresource.connectsqldb", "command": "azureresource.connectsqldb",
"when": "viewItem =~ /^azureResource.itemType.database/ && viewItem != azureResource.itemType.databaseContainer && viewItem != azureResource.itemType.databaseServerContainer", "when": "viewItem =~ /^azureResource\\.itemType\\.database(?:Server){0,1}$/",
"group": "1azureresource@1" "group": "1azureresource@1"
}, },
{ {
"command": "azureresource.connectsqldb", "command": "azureresource.connectsqldb",
"when": "viewItem =~ /^azureResource.itemType.database/ && viewItem != azureResource.itemType.databaseContainer && viewItem != azureResource.itemType.databaseServerContainer", "when": "viewItem =~ /^azureResource\\.itemType\\.database(?:Server){0,1}$/",
"group": "inline" "group": "inline"
}, },
{ {
@@ -140,7 +140,7 @@
}, },
{ {
"command": "azureresource.refresh", "command": "azureresource.refresh",
"when": "viewItem != azureResource.itemType.database && viewItem != azureResource.itemType.databaseServer && viewItem != azureResource.itemType.message", "when": "viewItem =~ /^azureResource\\.itemType\\.(?:account|subscription|databaseContainer|databaseServerContainer)$/",
"group": "inline" "group": "inline"
} }
] ]