Skip to content

Commit bddfa3a

Browse files
committed
Don't use simple file dialog for user data
Fixes microsoft#107882
1 parent da13bb7 commit bddfa3a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/vs/workbench/services/dialogs/electron-sandbox/fileDialogService.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ export class FileDialogService extends AbstractFileDialogService implements IFil
5858
private shouldUseSimplified(schema: string): { useSimplified: boolean, isSetting: boolean } {
5959
const setting = (this.configurationService.getValue('files.simpleDialog.enable') === true);
6060
const newWindowSetting = (this.configurationService.getValue('window.openFilesInNewWindow') === 'on');
61-
return { useSimplified: (schema !== Schemas.file) || setting, isSetting: newWindowSetting };
61+
return {
62+
useSimplified: ((schema !== Schemas.file) && (schema !== Schemas.userData)) || setting,
63+
isSetting: newWindowSetting
64+
};
6265
}
6366

6467
async pickFileFolderAndOpen(options: IPickAndOpenOptions): Promise<any> {

0 commit comments

Comments
 (0)