Skip to content

Commit

Permalink
Functions node fully refreshes after deploy (#3973)
Browse files Browse the repository at this point in the history
* loadChildren on RemoteFunctions refresh since the list will not update

* Make init and refresh different functions
  • Loading branch information
nturinski authored Feb 5, 2024
1 parent 9fbcbb6 commit d884321
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/tree/remoteProject/RemoteFunctionsTreeItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,19 @@ export class RemoteFunctionsTreeItem extends FunctionsTreeItemBase {
public static async createFunctionsTreeItem(context: IActionContext, parent: SlotTreeItem): Promise<RemoteFunctionsTreeItem> {
const ti: RemoteFunctionsTreeItem = new RemoteFunctionsTreeItem(parent);
// initialize
await ti.refreshImpl(context);
await ti.initAsync(context);
return ti;
}

public async refreshImpl(context: IActionContext): Promise<void> {
public async initAsync(context: IActionContext): Promise<void> {
this.isReadOnly = await this.parent.isReadOnly(context);
}

public async refreshImpl(context: IActionContext): Promise<void> {
await this.initAsync(context);
await this.loadAllChildren(context);
}

public hasMoreChildrenImpl(): boolean {
return !!this._nextLink;
}
Expand Down

0 comments on commit d884321

Please sign in to comment.