Merge pull request #20547 from sht/fix-config-promise

Await configuration loading on Windows
This commit is contained in:
Mazen Elkashef
2020-06-05 22:53:09 -05:00
committed by GitHub

View File

@@ -319,12 +319,7 @@ module.exports = class AtomApplication extends EventEmitter {
this.promptForRestart()
);
});
// TodoElectronIssue: In electron v2 awaiting the watcher causes some delay
// in Windows machines, which affects directly the startup time.
if (process.platform !== 'win32') {
await this.configFilePromise;
}
await this.configFilePromise;
}
let optionsForWindowsToOpen = [];