Add Detach Database option to database context menu (#23480)

This commit is contained in:
Cory Rivera
2023-06-27 12:32:09 -07:00
committed by GitHub
parent fcb56da720
commit e5aa752740
12 changed files with 176 additions and 10 deletions

View File

@@ -101,6 +101,11 @@
"category": "MSSQL",
"title": "%title.renameObject%"
},
{
"command": "mssql.detachDatabase",
"category": "MSSQL",
"title": "%title.detachDatabase%"
},
{
"command": "mssql.enableGroupBySchema",
"category": "MSSQL",
@@ -542,6 +547,11 @@
"when": "connectionProvider == MSSQL && nodeType == Column && config.workbench.enablePreviewFeatures && nodePath =~ /^.*\\/Tables\\/.*\\/Columns\\/.*$/",
"group": "0_query@3"
},
{
"command": "mssql.detachDatabase",
"when": "connectionProvider == MSSQL && nodeType == Database && !isCloud && config.workbench.enablePreviewFeatures",
"group": "0_query@4"
},
{
"command": "mssql.enableGroupBySchema",
"when": "connectionProvider == MSSQL && nodeType && nodeType =~ /^(Server|Database)$/ && !config.mssql.objectExplorer.groupBySchema"