mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
support rename for login, user and a few other types (#22331)
* rename object * add comment * use URN property * vbump STS * revert loc string change * fix name check * pr comments
This commit is contained in:
@@ -92,6 +92,11 @@
|
||||
"category": "MSSQL",
|
||||
"title": "%title.deleteObject%"
|
||||
},
|
||||
{
|
||||
"command": "mssql.renameObject",
|
||||
"category": "MSSQL",
|
||||
"title": "%title.renameObject%"
|
||||
},
|
||||
{
|
||||
"command": "mssql.enableGroupBySchema",
|
||||
"category": "MSSQL",
|
||||
@@ -478,6 +483,10 @@
|
||||
{
|
||||
"command": "mssql.deleteObject",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "mssql.renameObject",
|
||||
"when": "false"
|
||||
}
|
||||
],
|
||||
"objectExplorer/item/context": [
|
||||
@@ -511,6 +520,16 @@
|
||||
"when": "connectionProvider == MSSQL && nodeType =~ /^(ServerLevelLogin|User)$/ && config.workbench.enablePreviewFeatures",
|
||||
"group": "0_query@2"
|
||||
},
|
||||
{
|
||||
"command": "mssql.renameObject",
|
||||
"when": "connectionProvider == MSSQL && nodeType =~ /^(Database|ServerLevelLogin|User|Table|View)$/ && config.workbench.enablePreviewFeatures",
|
||||
"group": "0_query@3"
|
||||
},
|
||||
{
|
||||
"command": "mssql.renameObject",
|
||||
"when": "connectionProvider == MSSQL && nodeType == Column && config.workbench.enablePreviewFeatures && nodePath =~ /^.*\/Tables\/.*\/Columns\/.*$",
|
||||
"group": "0_query@3"
|
||||
},
|
||||
{
|
||||
"command": "mssql.enableGroupBySchema",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType =~ /^(Server|Database)$/ && !config.mssql.objectExplorer.groupBySchema"
|
||||
@@ -551,6 +570,16 @@
|
||||
"when": "connectionProvider == MSSQL && nodeType =~ /^(ServerLevelLogin|User)$/ && config.workbench.enablePreviewFeatures",
|
||||
"group": "connection@2"
|
||||
},
|
||||
{
|
||||
"command": "mssql.renameObject",
|
||||
"when": "connectionProvider == MSSQL && nodeType =~ /^(Database|ServerLevelLogin|User|Table|View)$/ && config.workbench.enablePreviewFeatures",
|
||||
"group": "connection@3"
|
||||
},
|
||||
{
|
||||
"command": "mssql.renameObject",
|
||||
"when": "connectionProvider == MSSQL && nodeType == Column && config.workbench.enablePreviewFeatures && nodePath =~ /^.*\/Tables\/.*\/Columns\/.*$",
|
||||
"group": "connection@3"
|
||||
},
|
||||
{
|
||||
"command": "mssql.enableGroupBySchema",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType =~ /^(Server|Database)$/ && !config.mssql.objectExplorer.groupBySchema"
|
||||
|
||||
Reference in New Issue
Block a user