microsoft / vscode

Visual Studio Code

Home Page:https://code.visualstudio.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Override the setting for Simple File-Dialogs

igorskyflyer opened this issue · comments

Hello, I've created an extension that uses the vscode.window.showSaveDialog function and [it] would really benefit the ability to ignore the global files.simpleDialog.enable setting and always use built-in Simple Dialogs and not use the OS/native Save Dialogs. Is it possible to override this behavior when callingvscode.window.showSaveDialog?
If not, are there any plans for such feature?

The user made the choice to set files.simpleDialog.enable, so if we provided a way way for extensions to choose which file picker to show then we would be ignoring an explicit user choice. It is intentional that we stick to the user's chosen setting here!

Got it, I guess I'll resort to making my own UI for the folder dialog. 👍

@igorskyflyer if there is something that the simple file picker is missing and that you think would have broad usefulness you can also open an issue with a feature request for us to consider.

I've been busy with work and other projects but after a long wait, I worked really hard and managed to finish my FolderPicker npm module for Visual Studio Code that implements the aforementioned behavior and shows a custom QuickPick that allows browsing and creating folders from the Command Palette, even nested/recursive folders. The extension that implements this package is available at New Folder repo.

Not perfect (yet) but it works. 😁