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:
Vasu Bhog
2022-04-08 10:28:45 -07:00
committed by GitHub
parent dc14201088
commit ed8d2f9927
5 changed files with 142 additions and 42 deletions

View File

@@ -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"
}
]