Extend sql bindings api (#19651)

This commit is contained in:
Barbara Valdez
2022-06-07 10:12:41 -07:00
committed by GitHub
parent 7007e18314
commit a73eb0386b
3 changed files with 12 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ import { IConnectionInfo, ITreeNodeInfo } from 'vscode-mssql';
import { IExtension, BindingType, GetAzureFunctionsResult, ResultStatus, IConnectionStringInfo } from 'sql-bindings';
import { addSqlBinding, createAzureFunction, getAzureFunctions } from './services/azureFunctionsService';
import { launchAddSqlBindingQuickpick } from './dialogs/addSqlBindingQuickpick';
import { promptForBindingType, promptAndUpdateConnectionStringSetting, promptForObjectName } from './common/azureFunctionsUtils';
import { promptForBindingType, promptAndUpdateConnectionStringSetting, promptForObjectName, addSqlNugetReferenceToProjectFile } from './common/azureFunctionsUtils';
export async function activate(context: vscode.ExtensionContext): Promise<IExtension> {
// register the add sql binding command
@@ -34,6 +34,9 @@ export async function activate(context: vscode.ExtensionContext): Promise<IExten
},
getAzureFunctions: async (filePath: string): Promise<GetAzureFunctionsResult> => {
return getAzureFunctions(filePath);
},
addSqlNugetReferenceToProjectFile: async (projectFile: string): Promise<void> => {
return addSqlNugetReferenceToProjectFile(projectFile);
}
};
}