Skip to content

Commit 9ab3fec

Browse files
authored
Update appservice package for deploy log copilot and deployment tree item perf enhancements (#4580)
1 parent 7d66f0d commit 9ab3fec

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@
14811481
"@azure/core-client": "^1.7.3",
14821482
"@azure/core-rest-pipeline": "^1.11.0",
14831483
"@azure/storage-blob": "^12.5.0",
1484-
"@microsoft/vscode-azext-azureappservice": "^3.6.3",
1484+
"@microsoft/vscode-azext-azureappservice": "^3.6.4",
14851485
"@microsoft/vscode-azext-azureappsettings": "^0.2.8",
14861486
"@microsoft/vscode-azext-azureutils": "^3.3.3",
14871487
"@microsoft/vscode-azext-utils": "^3.1.1",

src/tree/ResolvedFunctionAppResource.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { type Site, type SiteConfig, type SiteSourceControl, type StringDictionary } from "@azure/arm-appservice";
6+
import { type Site, type StringDictionary } from "@azure/arm-appservice";
77
import { DeleteLastServicePlanStep, DeleteSiteStep, DeploymentTreeItem, DeploymentsTreeItem, LogFilesTreeItem, ParsedSite, SiteFilesTreeItem, createWebSiteClient, getFile, type IDeleteSiteWizardContext } from "@microsoft/vscode-azext-azureappservice";
88
import { AppSettingTreeItem, AppSettingsTreeItem } from "@microsoft/vscode-azext-azureappsettings";
99
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
261261

262262
public async loadMoreChildrenImpl(_clearCache: boolean, context: IActionContext): Promise<AzExtTreeItem[]> {
263263
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();
267264
const proxyTree: SlotTreeItem = this as unknown as SlotTreeItem;
268265

269266
this.deploymentsNode = new DeploymentsTreeItem(proxyTree, {
270267
site: this.site,
271-
siteConfig,
272-
sourceControl,
273268
contextValuesToAdd: ['azFunc']
274269
});
270+
275271
this.appSettingsTreeItem = await AppSettingsTreeItem.createAppSettingsTreeItem(context, proxyTree, this.site, ext.prefix, {
276272
contextValuesToAdd: ['azFunc'],
277273
});

0 commit comments

Comments
 (0)