mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-24 18:47:10 -05:00
Pass through database names to enable connection cleanup (#24251)
* Also re-ordered Attach entry to match context menu placement of other admin commands.
This commit is contained in:
@@ -588,6 +588,11 @@
|
||||
"when": "connectionProvider == MSSQL && nodeType == Database && !isCloud && !(nodePath =~ /^.*\\/System Databases\\/.*$/) && config.workbench.enablePreviewFeatures && (productQualityType =~ /^(insider|dev)$/ || isDevelopment)",
|
||||
"group": "1_objectManagement@2"
|
||||
},
|
||||
{
|
||||
"command": "mssql.attachDatabase",
|
||||
"when": "connectionProvider == MSSQL && nodeType == Folder && objectType == Databases && !isCloud && config.workbench.enablePreviewFeatures",
|
||||
"group": "1_objectManagement@2"
|
||||
},
|
||||
{
|
||||
"command": "mssql.dropDatabase",
|
||||
"when": "connectionProvider == MSSQL && nodeType == Database && !(nodePath =~ /^.*\\/System Databases\\/.*$/) && config.workbench.enablePreviewFeatures",
|
||||
@@ -598,11 +603,6 @@
|
||||
"when": "connectionProvider == MSSQL && nodeType =~ /^(ServerLevelLogin|User|ServerLevelServerRole|ApplicationRole|DatabaseRole)$/ && !(nodePath =~ /^.*\\/System Databases\\/.*$/) && config.workbench.enablePreviewFeatures",
|
||||
"group": "1_objectManagement@3"
|
||||
},
|
||||
{
|
||||
"command": "mssql.attachDatabase",
|
||||
"when": "connectionProvider == MSSQL && nodeType == Folder && objectType == Databases && !isCloud && config.workbench.enablePreviewFeatures",
|
||||
"group": "1_objectManagement"
|
||||
},
|
||||
{
|
||||
"command": "mssql.enableGroupBySchema",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType =~ /^(Server|Database)$/ && !config.mssql.objectExplorer.groupBySchema",
|
||||
|
||||
Reference in New Issue
Block a user