提交 bddfa3a7 编写于 作者: A Alex Ross

Don't use simple file dialog for user data

Fixes #107882
上级 da13bb75
......@@ -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> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册