|
3 | 3 | * Licensed under the MIT License. See License.txt in the project root for license information. |
4 | 4 | *--------------------------------------------------------------------------------------------*/ |
5 | 5 |
|
6 | | -import { type Site, type SiteConfig, type SiteSourceControl, type StringDictionary } from "@azure/arm-appservice"; |
| 6 | +import { type Site, type StringDictionary } from "@azure/arm-appservice"; |
7 | 7 | import { DeleteLastServicePlanStep, DeleteSiteStep, DeploymentTreeItem, DeploymentsTreeItem, LogFilesTreeItem, ParsedSite, SiteFilesTreeItem, createWebSiteClient, getFile, type IDeleteSiteWizardContext } from "@microsoft/vscode-azext-azureappservice"; |
8 | 8 | import { AppSettingTreeItem, AppSettingsTreeItem } from "@microsoft/vscode-azext-azureappsettings"; |
9 | 9 | import { AzureWizard, DeleteConfirmationStep, callWithTelemetryAndErrorHandling, type AzExtTreeItem, type IActionContext, type ISubscriptionContext, type TreeItemIconPath } from "@microsoft/vscode-azext-utils"; |
@@ -261,17 +261,13 @@ export class ResolvedFunctionAppResource extends ResolvedFunctionAppBase impleme |
261 | 261 |
|
262 | 262 | public async loadMoreChildrenImpl(_clearCache: boolean, context: IActionContext): Promise<AzExtTreeItem[]> { |
263 | 263 | await this.initSite(context); |
264 | | - const client = await this.site.createClient(context); |
265 | | - const siteConfig: SiteConfig = await client.getSiteConfig(); |
266 | | - const sourceControl: SiteSourceControl = await client.getSourceControl(); |
267 | 264 | const proxyTree: SlotTreeItem = this as unknown as SlotTreeItem; |
268 | 265 |
|
269 | 266 | this.deploymentsNode = new DeploymentsTreeItem(proxyTree, { |
270 | 267 | site: this.site, |
271 | | - siteConfig, |
272 | | - sourceControl, |
273 | 268 | contextValuesToAdd: ['azFunc'] |
274 | 269 | }); |
| 270 | + |
275 | 271 | this.appSettingsTreeItem = await AppSettingsTreeItem.createAppSettingsTreeItem(context, proxyTree, this.site, ext.prefix, { |
276 | 272 | contextValuesToAdd: ['azFunc'], |
277 | 273 | }); |
|
0 commit comments