mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-14 03:58:33 -05:00
Make Create Azure Function with SQL Binding more efficient and simple (#19187)
* initial refactor * fix projectFolder cases * update create azure function with sql binding when no folder is opened * corner case exit browse file * add version since targetFramework is set to specific core tools version * update telemetry and address comments * use project folder instead
This commit is contained in:
@@ -17,8 +17,6 @@ export enum TelemetryViews {
|
||||
export enum TelemetryActions {
|
||||
// Create Azure Function with Sql Binding from Table
|
||||
startCreateAzureFunctionWithSqlBinding = 'startCreateAzureFunctionWithSqlBinding',
|
||||
helpCreateAzureFunctionProject = 'helpCreateAzureFunctionProject',
|
||||
learnMore = 'learnMore',
|
||||
finishCreateAzureFunctionWithSqlBinding = 'finishCreateAzureFunctionWithSqlBinding',
|
||||
exitCreateAzureFunctionQuickpick = 'exitCreateAzureFunctionQuickpick',
|
||||
|
||||
@@ -31,3 +29,30 @@ export enum TelemetryActions {
|
||||
finishAddSqlBinding = 'finishAddSqlBinding',
|
||||
exitSqlBindingsQuickpick = 'exitSqlBindingsQuickpick',
|
||||
}
|
||||
|
||||
export enum CreateAzureFunctionStep {
|
||||
getAzureFunctionProject = 'getAzureFunctionProject',
|
||||
learnMore = 'learnMore',
|
||||
helpCreateAzureFunctionProject = 'helpCreateAzureFunctionProject',
|
||||
getSelectedFolder = 'getSelectedFolder',
|
||||
getBindingType = 'getBindingType',
|
||||
launchFromCommandPalette = 'launchFromCommandPalette',
|
||||
launchFromTable = 'launchFromTable',
|
||||
getConnectionProfile = 'getConnectionProfile',
|
||||
getDatabase = 'getDatabase',
|
||||
getObjectName = 'getObjectName',
|
||||
getConnectionString = 'getConnectionString',
|
||||
getAzureFunctionName = 'getAzureFunctionName',
|
||||
getTemplateId = 'getTemplateId',
|
||||
setAzureWebJobsStorage = 'setAzureWebJobsStorage',
|
||||
getConnectionStringSettingName = 'getConnectionStringSettingName',
|
||||
promptForIncludePassword = 'promptForIncludePassword',
|
||||
}
|
||||
|
||||
export enum ExitReason {
|
||||
cancelled = 'cancelled',
|
||||
finishCreate = 'finishCreate',
|
||||
timeout = 'timeout',
|
||||
error = 'error',
|
||||
exit = 'exit'
|
||||
}
|
||||
Reference in New Issue
Block a user