Skip to content

Add create folder to simple file dialog - #319564

Merged
Alex Ross (alexr00) merged 1 commit into
mainfrom
determined-cricket
Jun 2, 2026
Merged

Alex Ross (alexr00) merged 1 commit into
mainfrom
determined-cricket

Conversation

@alexr00

Copy link
Copy Markdown
Member

Fixes #318768

Copilot AI review requested due to automatic review settings June 2, 2026 11:47
@alexr00
Alex Ross (alexr00) enabled auto-merge (squash) June 2, 2026 11:47
@alexr00 Alex Ross (alexr00) self-assigned this Jun 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for creating a new folder from the Simple File Dialog when using a folder-only picker (notably when files.simpleDialog.enable is enabled), addressing the “can’t start a new project” workflow in the Agents Window.

Changes:

  • Extends the open (folder-only) validation flow to prompt to create a missing folder when the parent exists and is writable, then creates it via fileService.createFolder.
  • Simplifies several async validation returns by using direct true/false returns instead of Promise.resolve(...).
Show a summary per file
File Description
src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts Adds folder-creation prompt + createFolder call for folder-only open validation; simplifies boolean returns in validate.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 2

@alexr00
Alex Ross (alexr00) merged commit 52761c3 into main Jun 2, 2026
26 checks passed
@alexr00
Alex Ross (alexr00) deleted the determined-cricket branch June 2, 2026 12:36
@vs-code-engineering vs-code-engineering Bot added this to the 1.124.0 milestone Jun 2, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jul 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No way to start a new project in Agents Window when using Simple File Dialog

3 participants