diff --git a/packages/vscode/src/dialog.ts b/packages/vscode/src/dialog.ts index e3dc3e584..c7a9cc5c5 100644 --- a/packages/vscode/src/dialog.ts +++ b/packages/vscode/src/dialog.ts @@ -315,7 +315,6 @@ class Dialog { } buttonsNode.appendChild(confirmBtn); this.root.appendChild(buttonsNode); - this.entryList.layout(); this.path = options.defaultPath || "/"; } @@ -391,6 +390,8 @@ class Dialog { return true; }); + this.entryList.layout(); + this.entryList.setChildren(null, items.map((i: DialogEntry): ITreeElement => ({ element: i }))); this.entryList.domFocus(); this.entryList.setFocus([null]);