mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-09 13:15:37 +03:00
Remove unused forceAddToWindow
This commit is contained in:
parent
8126a136cd
commit
96e6403573
@ -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])
|
||||
})
|
||||
|
@ -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
|
||||
}
|
||||
]
|
||||
|
@ -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
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user