-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathLocalAppSettingNameStep.ts
More file actions
20 lines (18 loc) · 1.12 KB
/
LocalAppSettingNameStep.ts
File metadata and controls
20 lines (18 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { type BindingSettingValue } from '../../../funcConfig/function';
import { localize } from '../../../localize';
import { type IBindingWizardContext } from '../IBindingWizardContext';
import { BindingSettingStepBase } from './BindingSettingStepBase';
export class LocalAppSettingNameStep extends BindingSettingStepBase {
public async promptCore(context: IBindingWizardContext): Promise<BindingSettingValue> {
const appSettingSuffix: string = `_${this._resourceType.toUpperCase()}`;
return await context.ui.showInputBox({
placeHolder: localize('appSettingKeyPlaceholder', 'Local app setting key'),
prompt: localize('appSettingKeyPrompt', 'Provide a key for a connection string'),
value: `example${appSettingSuffix}`
});
}
}