mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
Fix for user using command palette (#18948)
* fix for user using command palette command * rework if a user uses the create azure function via the command * for now only show in vs code * move logic to azureFunctionService + address comments * fix command location * address comments * fix validateFunction
This commit is contained in:
@@ -40,8 +40,7 @@
|
||||
{
|
||||
"command": "sqlBindings.createAzureFunction",
|
||||
"title": "%sqlBindings.createAzureFunction%",
|
||||
"category": "MS SQL",
|
||||
"when": "view == objectExplorer && viewItem == Table"
|
||||
"category": "MS SQL"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
@@ -49,12 +48,17 @@
|
||||
{
|
||||
"command": "sqlBindings.addSqlBinding",
|
||||
"when": "editorLangId == csharp && !azdataAvailable && resourceScheme != untitled"
|
||||
},
|
||||
{
|
||||
"command": "sqlBindings.createAzureFunction",
|
||||
"when": "view == objectExplorer && viewItem == Table && !azdataAvailable",
|
||||
"group": "zAzure_Function@1"
|
||||
}
|
||||
],
|
||||
"view/item/context": [
|
||||
{
|
||||
"command": "sqlBindings.createAzureFunction",
|
||||
"when": "view == objectExplorer && viewItem == Table",
|
||||
"when": "view == objectExplorer && viewItem == Table && !azdataAvailable",
|
||||
"group": "zAzure_Function@1"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user