Remove unused forceAddToWindow

This commit is contained in:
Ash Wilson 2019-04-19 17:36:33 -04:00
parent 8126a136cd
commit 96e6403573
No known key found for this signature in database
GPG Key ID: 81B1DDB704F69D2A
3 changed files with 3 additions and 7 deletions

View File

@ -880,7 +880,7 @@ describe('AtomEnvironment', () => {
it('does not attempt to restore the project state, instead adding the project paths', async () => {
const pathToOpen = path.join(__dirname, 'fixtures')
await atom.openLocations([{ pathToOpen, exists: true, isDirectory: true, forceAddToWindow: true }])
await atom.openLocations([{ pathToOpen, exists: true, isDirectory: true }])
expect(atom.attemptRestoreProjectStateForPaths).not.toHaveBeenCalled()
expect(atom.project.getPaths()).toEqual([__dirname, pathToOpen])
})

View File

@ -177,16 +177,14 @@ describe('AtomWindow', function () {
pathToOpen: 'file.txt',
initialLine: 1,
initialColumn: 2,
mustBeDirectory: false,
forceAddToWindow: false,
isDirectory: false,
hasWaitSession: false
},
{
pathToOpen: '/directory',
initialLine: null,
initialColumn: null,
mustBeDirectory: true,
forceAddToWindow: false,
isDirectory: true,
hasWaitSession: false
}
]

View File

@ -972,7 +972,6 @@ class AtomApplication extends EventEmitter {
const locationsToOpen = await Promise.all(
pathsToOpen.map(pathToOpen => this.parsePathToOpen(pathToOpen, executedFrom, {
forceAddToWindow: addToLastWindow,
hasWaitSession: pidToKillWhenClosed != null
}))
)
@ -984,7 +983,6 @@ class AtomApplication extends EventEmitter {
initialColumn: null,
exists: true,
isDirectory: true,
forceAddToWindow: addToLastWindow,
hasWaitSession: pidToKillWhenClosed != null
})
}