From 18847f79d1b458e3d8eae4755baac03cd095420f Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Thu, 21 Mar 2019 19:09:02 -0400 Subject: [PATCH] Restore the newWindow option to force a path to open in a new window --- src/main-process/atom-application.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main-process/atom-application.js b/src/main-process/atom-application.js index 7be947115..6fe8a0c34 100644 --- a/src/main-process/atom-application.js +++ b/src/main-process/atom-application.js @@ -230,6 +230,7 @@ class AtomApplication extends EventEmitter { pidToKillWhenClosed, devMode, safeMode, + newWindow, logFile, profileStartup, timeout, @@ -267,6 +268,7 @@ class AtomApplication extends EventEmitter { foldersToOpen, executedFrom, pidToKillWhenClosed, + newWindow, devMode, safeMode, profileStartup, @@ -280,6 +282,7 @@ class AtomApplication extends EventEmitter { // Always open a editor window if this is the first instance of Atom. return this.openPath({ pidToKillWhenClosed, + newWindow, devMode, safeMode, profileStartup, @@ -791,6 +794,7 @@ class AtomApplication extends EventEmitter { // options - // :pathToOpen - The file path to open // :pidToKillWhenClosed - The integer of the pid to kill + // :newWindow - Boolean of whether this should be opened in a new window. // :devMode - Boolean to control the opened window's dev mode. // :safeMode - Boolean to control the opened window's safe mode. // :profileStartup - Boolean to control creating a profile of the startup time. @@ -810,6 +814,7 @@ class AtomApplication extends EventEmitter { return this.openPaths({ pathsToOpen: [pathToOpen], pidToKillWhenClosed, + newWindow, devMode, safeMode, profileStartup, @@ -826,6 +831,7 @@ class AtomApplication extends EventEmitter { // :pathsToOpen - The array of file paths to open // :foldersToOpen - An array of additional paths to open that must be existing directories // :pidToKillWhenClosed - The integer of the pid to kill + // :newWindow - Boolean of whether this should be opened in a new window. // :devMode - Boolean to control the opened window's dev mode. // :safeMode - Boolean to control the opened window's safe mode. // :windowDimensions - Object with height and width keys. @@ -836,6 +842,7 @@ class AtomApplication extends EventEmitter { foldersToOpen, executedFrom, pidToKillWhenClosed, + newWindow, devMode, safeMode, windowDimensions,