Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 8, 2025

Description

When using the simple file dialog on a local filesystem, users cannot quickly switch to the native OS dialog without changing settings. This adds a button to do so.

Changes

Core mechanism:

  • Added forceNative?: boolean to IOpenDialogOptions and ISaveDialogOptions interfaces
  • Dialog services check this flag to bypass simple dialog routing and use native OS dialog directly

UI integration:

  • Simple file dialog shows "Show OS Dialog" button when scheme === Schemas.file
  • Button handler sets options.forceNative = true and calls dialog service
  • Mirrors existing "Show Local" button pattern for remote-to-local switching

Testing:

  • Added unit tests verifying forceNative bypasses simple dialog for both open and save operations

Files Modified

  • src/vs/platform/dialogs/common/dialogs.ts - Dialog option interfaces
  • src/vs/workbench/services/dialogs/browser/fileDialogService.ts - Web dialog service
  • src/vs/workbench/services/dialogs/electron-browser/fileDialogService.ts - Electron dialog service
  • src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts - Button UI and handler
  • src/vs/workbench/services/dialogs/test/electron-browser/fileDialogService.test.ts - Tests
Original prompt

This section details on the original issue you should resolve

<issue_title>Add a way back to OS file dialog from simple file dialog when possible</issue_title>
<issue_description>

It would be great to have a tiny S inside a rounded square or a representative icon that allows to open the files from the Simple Dialogue instead of System Dialogue so the switching can be done quickly without having open the settings... since somtimes using System Dialogue (with Listary, Previews, etc) is required and some other just using the Simple Dialogue fit better the need

Thank you</issue_description>

<agent_instructions>Add a button in the Simple file dialog if there's a local file system which opens the OS file explorer.</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@alexr00 @neoOpus I think having an "open with simple" indicator everywhere that you can open a file would pollute the UI. However, I think the real need (at least the need that I personally have run into) is that sometimes you need to go to the system dialog from the simple file dialog and never the other way around.

For this, I think it makes sense to have an option to leave the simple file dialog and go to the system file dialog. </comment_new>


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add button to switch from simple file dialog to system dialog Add "Show OS Dialog" button to simple file dialog for local filesystem Dec 8, 2025
Copilot AI requested a review from alexr00 December 8, 2025 11:54
Copilot finished work on behalf of alexr00 December 8, 2025 11:54
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.

Add a way back to OS file dialog from simple file dialog when possible

2 participants