mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-12 19:18:32 -05:00
[SQL Bindings] Skip prompt to select setting from connection settings if there is none (#19798)
* add no setting option * add tests * reformat tests
This commit is contained in:
@@ -78,10 +78,62 @@ export const enterObjectName = localize('enterObjectName', 'Enter SQL table or v
|
||||
export const enterObjectNameToUpsert = localize('enterObjectNameToUpsert', 'Enter SQL table to upsert into');
|
||||
export const selectTable = localize('selectTable', 'Select table to use');
|
||||
export const tableListProgressTitle = localize('tableListProgressTitle', "Fetching tables for selected database...");
|
||||
export const selectConnectionError = (err?: any): string => err ? localize('selectConnectionError', "Failed to set connection string app setting: {0}", utils.getErrorMessage(err)) : localize('unableToSetConnectionString', "Failed to set connection string app setting");
|
||||
export const failedToSetSetting = (err?: any): string => err ? localize('failedToSetSetting', "Failed to set connection string app setting: {0}", utils.getErrorMessage(err)) : localize('unableToSetConnectionString', "Failed to set connection string app setting");
|
||||
export function selectBindingType(funcName?: string): string { return funcName ? localize('selectBindingTypeToSpecifiedFunction', "Select type of binding for the function '{0}'", funcName) : localize('selectBindingType', "Select type of binding"); }
|
||||
export function settingAlreadyExists(settingName: string): string { return localize('SettingAlreadyExists', 'Local app setting \'{0}\' already exists. Overwrite?', settingName); }
|
||||
export function failedToParse(filename: string, error: any): string { return localize('failedToParse', 'Failed to parse "{0}": {1}.', filename, utils.getErrorMessage(error)); }
|
||||
export function addSqlBinding(functionName: string): string { return localize('addSqlBinding', 'Adding SQL Binding to function "{0}"...'), functionName; }
|
||||
export function errorNewAzureFunction(error: any): string { return localize('errorNewAzureFunction', 'Error creating new Azure Function: {0}', utils.getErrorMessage(error)); }
|
||||
export function manuallyEnterObjectName(userObjectName: string): string { return `$(pencil) ${userObjectName}`; }
|
||||
|
||||
// Known Azure settings reference for Azure Functions
|
||||
// https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings
|
||||
export const knownSettings: string[] = [
|
||||
'APPINSIGHTS_INSTRUMENTATIONKEY',
|
||||
'APPLICATIONINSIGHTS_CONNECTION_STRING',
|
||||
'AZURE_FUNCTION_PROXY_DISABLE_LOCAL_CALL',
|
||||
'AZURE_FUNCTION_PROXY_BACKEND_URL_DECODE_SLASHES',
|
||||
'AZURE_FUNCTIONS_ENVIRONMENT',
|
||||
'AzureWebJobsDashboard',
|
||||
'AzureWebJobsDisableHomepage',
|
||||
'AzureWebJobsDotNetReleaseCompilation',
|
||||
'AzureWebJobsFeatureFlags',
|
||||
'AzureWebJobsKubernetesSecretName',
|
||||
'AzureWebJobsSecretStorageKeyVaultClientId',
|
||||
'AzureWebJobsSecretStorageKeyVaultClientSecret',
|
||||
'AzureWebJobsSecretStorageKeyVaultName',
|
||||
'AzureWebJobsSecretStorageKeyVaultTenantId',
|
||||
'AzureWebJobsSecretStorageKeyVaultUri',
|
||||
'AzureWebJobsSecretStorageSas',
|
||||
'AzureWebJobsSecretStorageType',
|
||||
'AzureWebJobsStorage',
|
||||
'AzureWebJobs_TypeScriptPath',
|
||||
'DOCKER_SHM_SIZE',
|
||||
'FUNCTION_APP_EDIT_MODE',
|
||||
'FUNCTIONS_EXTENSION_VERSION',
|
||||
'FUNCTIONS_V2_COMPATIBILITY_MODE',
|
||||
'FUNCTIONS_WORKER_PROCESS_COUNT',
|
||||
'FUNCTIONS_WORKER_RUNTIME',
|
||||
'FUNCTIONS_WORKER_SHARED_MEMORY_DATA_TRANSFER_ENABLED',
|
||||
'MDMaxBackgroundUpgradePeriod',
|
||||
'MDNewSnapshotCheckPeriod',
|
||||
'MDMinBackgroundUpgradePeriod',
|
||||
'PIP_EXTRA_INDEX_URL',
|
||||
'PYTHON_ISOLATE_WORKER_DEPENDENCIES (Preview)',
|
||||
'PYTHON_ENABLE_DEBUG_LOGGING',
|
||||
'PYTHON_ENABLE_WORKER_EXTENSIONS',
|
||||
'PYTHON_THREADPOOL_THREAD_COUNT',
|
||||
'SCALE_CONTROLLER_LOGGING_ENABLED',
|
||||
'SCM_LOGSTREAM_TIMEOUT',
|
||||
'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING',
|
||||
'WEBSITE_CONTENTOVERVNET',
|
||||
'WEBSITE_CONTENTSHARE',
|
||||
'WEBSITE_SKIP_CONTENTSHARE_VALIDATION',
|
||||
'WEBSITE_DNS_SERVER',
|
||||
'WEBSITE_ENABLE_BROTLI_ENCODING',
|
||||
'WEBSITE_MAX_DYNAMIC_APPLICATION_SCALE_OUT',
|
||||
'WEBSITE_NODE_DEFAULT_VERSION',
|
||||
'WEBSITE_RUN_FROM_PACKAGE',
|
||||
'WEBSITE_TIME_ZONE',
|
||||
'WEBSITE_VNET_ROUTE_ALL'
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user