From 3c601454a28712a4d2b6d37a0e7186457e1b6620 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 8 Jun 2026 10:37:51 +0000 Subject: [PATCH 1/3] Initial plan From 69ff0f27982eff569f8f7faa51c5ef4bfa99c22c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 8 Jun 2026 10:50:04 +0000 Subject: [PATCH 2/3] Restore file list when canceling folder creation in simple file dialog Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com> --- .../workbench/services/dialogs/browser/simpleFileDialog.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts b/src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts index e85ce241236b9b..6446c27549fb4a 100644 --- a/src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts +++ b/src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts @@ -914,6 +914,11 @@ export class SimpleFileDialog extends Disposable implements ISimpleFileDialog { resolve(false); } this.filePickBox.show(); + // The quick pick UI's list is shared between quick picks, so showing the + // yes/no prompt above replaced the items in the underlying list. Re-assign + // the items so they are rendered again when the file picker is shown. + const currentItems = this.filePickBox.items; + this.filePickBox.items = currentItems; this.hidden = false; disposableStore.dispose(); })); From 451992d9209ffd3c80fdf2d5a03d69ada770e651 Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Fri, 19 Jun 2026 18:24:44 +0200 Subject: [PATCH 3/3] CCR feedback --- .../services/dialogs/browser/simpleFileDialog.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts b/src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts index 6446c27549fb4a..afd0396836e26f 100644 --- a/src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts +++ b/src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts @@ -912,13 +912,13 @@ export class SimpleFileDialog extends Disposable implements ISimpleFileDialog { disposableStore.add(prompt.onDidHide(() => { if (!isResolving) { resolve(false); + this.filePickBox.show(); + // The quick pick UI's list is shared between quick picks, so showing the + // yes/no prompt above replaced the items in the underlying list. Re-assign + // the items so they are rendered again when the file picker is shown. + const currentItems = this.filePickBox.items; + this.filePickBox.items = currentItems; } - this.filePickBox.show(); - // The quick pick UI's list is shared between quick picks, so showing the - // yes/no prompt above replaced the items in the underlying list. Re-assign - // the items so they are rendered again when the file picker is shown. - const currentItems = this.filePickBox.items; - this.filePickBox.items = currentItems; this.hidden = false; disposableStore.dispose(); }));