Use a single application to launch all precondition windows

This commit is contained in:
Ash Wilson
2019-04-16 15:59:08 -04:00
parent 08a29df12f
commit 2a50d87999

View File

@@ -149,12 +149,12 @@ class LaunchScenario {
}
async preconditions (source) {
const app = this.addApplication()
const windowPromises = []
for (const windowSpec of this.parseWindowSpecs(source)) {
const fullRootPaths = windowSpec.roots.map(rootPath => this.projectRootPool.get(rootPath))
const fullEditorPaths = windowSpec.editors.map(filePath => this.filePathPool.get(filePath))
const app = this.addApplication()
windowPromises.push((async (theApp, foldersToOpen, pathsToOpen) => {
const window = await theApp.openPaths({ newWindow: true, foldersToOpen, pathsToOpen })
await emitterEventPromise(window, 'window:locations-opened')