diff --git a/src/tree/remoteProject/RemoteFunctionsTreeItem.ts b/src/tree/remoteProject/RemoteFunctionsTreeItem.ts index b2aeb7a62..e680b3fb2 100644 --- a/src/tree/remoteProject/RemoteFunctionsTreeItem.ts +++ b/src/tree/remoteProject/RemoteFunctionsTreeItem.ts @@ -26,14 +26,19 @@ export class RemoteFunctionsTreeItem extends FunctionsTreeItemBase { public static async createFunctionsTreeItem(context: IActionContext, parent: SlotTreeItem): Promise { const ti: RemoteFunctionsTreeItem = new RemoteFunctionsTreeItem(parent); // initialize - await ti.refreshImpl(context); + await ti.initAsync(context); return ti; } - public async refreshImpl(context: IActionContext): Promise { + public async initAsync(context: IActionContext): Promise { this.isReadOnly = await this.parent.isReadOnly(context); } + public async refreshImpl(context: IActionContext): Promise { + await this.initAsync(context); + await this.loadAllChildren(context); + } + public hasMoreChildrenImpl(): boolean { return !!this._nextLink; }