better names, better jsdoc, fixes #35141

This commit is contained in:
Johannes Rieken
2017-09-27 14:46:42 +02:00
parent ec0c0fe430
commit a5824e6daa
3 changed files with 18 additions and 15 deletions

View File

@@ -61,16 +61,16 @@ export class MainThreadDialogs implements MainThreadDiaglogsShape {
if (options.defaultUri) {
result.defaultPath = options.defaultUri.fsPath;
}
if (!options.openFiles && !options.openFolders) {
options.openFiles = true;
if (!options.canSelectFiles && !options.canSelectFolders) {
options.canSelectFiles = true;
}
if (options.openFiles) {
if (options.canSelectFiles) {
result.properties.push('openFile');
}
if (options.openFolders) {
if (options.canSelectFolders) {
result.properties.push('openDirectory');
}
if (options.openMany) {
if (options.canSelectMany) {
result.properties.push('multiSelections');
}
if (options.filters) {