mirror of
https://github.com/atom/atom.git
synced 2026-01-26 07:19:06 -05:00
Restore the newWindow option to force a path to open in a new window
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user