Skip to content

Add create folder to simple file dialog#319564

Merged
alexr00 merged 1 commit into
mainfrom
determined-cricket
Jun 2, 2026
Merged

Add create folder to simple file dialog#319564
alexr00 merged 1 commit into
mainfrom
determined-cricket

Conversation

@alexr00
Copy link
Copy Markdown
Member

@alexr00 alexr00 commented Jun 2, 2026

Fixes #318768

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

Copilot AI left a comment

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

Comment thread src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts
Comment thread src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts
@alexr00 alexr00 merged commit 52761c3 into main Jun 2, 2026
26 checks passed
@alexr00 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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