Return BindingType directly from promptForBindingType (#19200)

* Return BindingType directly from promptForBindingType

* align

* Fix tests

* fix compile
This commit is contained in:
Charles Gagnon
2022-04-25 14:07:03 -07:00
committed by GitHub
parent 72a43854f8
commit d54b7b9970
6 changed files with 16 additions and 15 deletions

View File

@@ -28,9 +28,9 @@ declare module 'sql-bindings' {
addSqlBinding(bindingType: BindingType, filePath: string, functionName: string, objectName: string, connectionStringSetting: string): Promise<ResultStatus>;
/**
* Prompts the user to select type of binding and returns result
* Prompts the user to select type of binding and returns result or undefined if the user cancelled out of the prompt
*/
promptForBindingType(): Promise<(vscode.QuickPickItem & { type: BindingType }) | undefined>;
promptForBindingType(): Promise<BindingType | undefined>;
/**
* Prompts the user to enter object name for the SQL query
@@ -42,7 +42,7 @@ declare module 'sql-bindings' {
* Prompts the user to enter connection setting and updates it from AF project
* @param projectUri Azure Function project uri
*/
promptAndUpdateConnectionStringSetting(projectUri: vscode.Uri | undefined): Promise<string | undefined>;
promptAndUpdateConnectionStringSetting(projectUri: vscode.Uri | undefined): Promise<string | undefined>;
/**
* Gets the names of the Azure Functions in the file