Add Attach Database dialog (#24225)

This commit is contained in:
Cory Rivera
2023-08-30 13:38:25 -07:00
committed by GitHub
parent 9eee1384b4
commit e4abe4d167
9 changed files with 342 additions and 3 deletions

View File

@@ -117,6 +117,11 @@
"category": "MSSQL",
"title": "%title.detachDatabase%"
},
{
"command": "mssql.attachDatabase",
"category": "MSSQL",
"title": "%title.attachDatabase%"
},
{
"command": "mssql.enableGroupBySchema",
"category": "MSSQL",
@@ -525,6 +530,10 @@
{
"command": "mssql.detachDatabase",
"when": "false"
},
{
"command": "mssql.attachDatabase",
"when": "false"
}
],
"objectExplorer/item/context": [
@@ -589,6 +598,11 @@
"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",