From 362715bbeb68ebb30f3ccbc72f8f100035f679c8 Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 6 Jun 2019 14:57:03 -0500 Subject: [PATCH] Fix dialog items getting cut off Fixes #336. --- packages/vscode/src/dialog.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/vscode/src/dialog.ts b/packages/vscode/src/dialog.ts index e3dc3e58..c7a9cc5c 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]);