diff --git a/packages/vscode/src/dialog.ts b/packages/vscode/src/dialog.ts index ff99bc70..e3dc3e58 100644 --- a/packages/vscode/src/dialog.ts +++ b/packages/vscode/src/dialog.ts @@ -52,7 +52,15 @@ export type DialogOptions = OpenDialogOptions | SaveDialogOptions; export const showOpenDialog = (options: OpenDialogOptions): Promise => { return new Promise((resolve, reject): void => { - const dialog = new Dialog(DialogType.Open, options); + // Make the default to show hidden files and directories since there is no + // other way to make them visible in the dialogs currently. + const dialog = new Dialog(DialogType.Open, typeof options.properties.showHiddenFiles === "undefined" ? { + ...options, + properties: { + ...options.properties, + showHiddenFiles: true, + }, + } : options); dialog.onSelect((e) => { dialog.dispose(); resolve(e);