Refactor vscode-mssql sql bindings logic to sql bindings ext (#18725)

* wip for refactor of mssql to sql-bindings

* remove STS dependency

* work to bring function over and setup with vscodeMsql APIs

* copy typings from vscode-mssql
This commit is contained in:
Vasu Bhog
2022-03-14 13:07:27 -07:00
committed by GitHub
parent a86301312c
commit 2d1ffeb47c
12 changed files with 627 additions and 81 deletions

View File

@@ -13,7 +13,8 @@
"icon": "",
"aiKey": "AIF-37eefaf0-8022-4671-a3fb-64752724682e",
"activationEvents": [
"onCommand:sqlBindings.addSqlBinding"
"onCommand:sqlBindings.addSqlBinding",
"onCommand:sqlBindings.createAzureFunction"
],
"main": "./out/extension",
"repository": {
@@ -35,6 +36,12 @@
"command": "sqlBindings.addSqlBinding",
"title": "%sqlBindings.addSqlBinding%",
"category": "MS SQL"
},
{
"command": "sqlBindings.createAzureFunction",
"title": "%sqlBindings.createAzureFunction%",
"category": "MS SQL",
"when": "view == objectExplorer && viewItem == Table"
}
],
"menus": {
@@ -43,19 +50,25 @@
"command": "sqlBindings.addSqlBinding",
"when": "editorLangId == csharp && !azdataAvailable && resourceScheme != untitled"
}
],
"view/item/context": [
{
"command": "sqlBindings.createAzureFunction",
"when": "view == objectExplorer && viewItem == Table",
"group": "zAzure_Function@1"
}
]
}
},
"dependencies": {
"@microsoft/ads-extension-telemetry": "^1.1.5",
"fast-glob": "^3.2.7",
"fs-extra": "^5.0.0",
"jsonc-parser": "^2.3.1",
"promisify-child-process": "^3.1.1",
"vscode-nls": "^4.1.2"
},
"devDependencies": {
"@types/fs-extra": "^5.0.0",
"@types/node": "^14.14.16",
"tslint": "^5.8.0",
"should": "^13.2.1",
"sinon": "^9.0.2",