提交 4f0b658c 编写于 作者: A Alex Ross

Make simple file dialog setting a real setting

Fixes #73783
上级 982e7bc2
......@@ -239,6 +239,11 @@ import { isMacintosh } from 'vs/base/common/platform';
'description': nls.localize('workbench.useExperimentalGridLayout', "Enables the grid layout for the workbench. This setting may enable additional layout options for workbench components."),
'default': false,
'scope': ConfigurationScope.APPLICATION
},
'workbench.simpleFileDialog.enable': {
'type': 'boolean',
'description': nls.localize('workbench.simpleFileDialog.enable', "Enables the simple file dialog. The simple file dialog replaces the system file dialog when enabled."),
'default': false,
}
}
});
......
......@@ -85,8 +85,8 @@ export class FileDialogService implements IFileDialogService {
}
private shouldUseSimplified(schema: string): boolean {
const setting = this.configurationService.getValue('workbench.dialogs.useSimplified');
return (schema !== Schemas.file) || ((setting === 'true') || (setting === true));
const setting = this.configurationService.getValue('workbench.simpleFileDialog.enable');
return (schema !== Schemas.file) || (setting === true);
}
private ensureFileSchema(schema: string): string[] {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册