Don't use simple file dialog for user data

Fixes #107882
This commit is contained in:
Alex Ross
2020-10-01 16:21:45 +02:00
parent da13bb7562
commit bddfa3a73c
@@ -58,7 +58,10 @@ export class FileDialogService extends AbstractFileDialogService implements IFil
private shouldUseSimplified(schema: string): { useSimplified: boolean, isSetting: boolean } {
const setting = (this.configurationService.getValue('files.simpleDialog.enable') === true);
const newWindowSetting = (this.configurationService.getValue('window.openFilesInNewWindow') === 'on');
return { useSimplified: (schema !== Schemas.file) || setting, isSetting: newWindowSetting };
return {
useSimplified: ((schema !== Schemas.file) && (schema !== Schemas.userData)) || setting,
isSetting: newWindowSetting
};
}
async pickFileFolderAndOpen(options: IPickAndOpenOptions): Promise<any> {