Rename pathsToNotifyWhenClosed -> pathsWithWaitSessions

This commit is contained in:
Max Brunsfeld
2018-01-05 17:49:44 -08:00
parent 386b786d93
commit 6f50f32116
4 changed files with 13 additions and 13 deletions

View File

@@ -793,7 +793,7 @@ class AtomApplication extends EventEmitter {
for (let i = 0; i < pathsToOpen.length; i++) {
const location = this.parsePathToOpen(pathsToOpen[i], executedFrom, addToLastWindow)
location.forceAddToWindow = addToLastWindow
location.notifyWhenClosed = pidToKillWhenClosed != null
location.hasWaitSession = pidToKillWhenClosed != null
locationsToOpen.push(location)
pathsToOpen[i] = location.pathToOpen
}
@@ -886,7 +886,7 @@ class AtomApplication extends EventEmitter {
this.waitSessionsByWindow.delete(window)
}
windowDidCloseInitialPath (window, initialPath) {
windowDidClosePathWithWaitSession (window, initialPath) {
const waitSessions = this.waitSessionsByWindow.get(window)
if (!waitSessions) return
for (let i = waitSessions.length - 1; i >= 0; i--) {

View File

@@ -411,8 +411,8 @@ class AtomWindow extends EventEmitter {
return this.atomApplication.saveState()
}
didCloseInitialPath (path) {
this.atomApplication.windowDidCloseInitialPath(this, path)
didClosePathWithWaitSession (path) {
this.atomApplication.windowDidClosePathWithWaitSession(this, path)
}
copy () {