-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy patheditAppSetting.ts
More file actions
20 lines (17 loc) · 960 Bytes
/
editAppSetting.ts
File metadata and controls
20 lines (17 loc) · 960 Bytes
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 { AppSettingTreeItem } from '@microsoft/vscode-azext-azureappsettings';
import { IActionContext } from '@microsoft/vscode-azext-utils';
import { functionFilter } from '../constants';
import { ext } from '../extensionVariables';
export async function editAppSetting(context: IActionContext, node?: AppSettingTreeItem): Promise<void> {
if (!node) {
node = await ext.rgApi.pickAppResource<AppSettingTreeItem>(context, {
filter: functionFilter,
expectedChildContextValue: new RegExp(AppSettingTreeItem.contextValue)
});
}
await node.edit(context);
}