mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Merge pull request #13760 from atom/wl-open-empty-editor-as-pending
Open empty editor as a pending pane item
This commit is contained in:
commit
7e4dfa9417
@ -375,7 +375,7 @@ describe('AtomEnvironment', () => {
|
||||
it('opens an empty buffer', () => {
|
||||
spyOn(atom.workspace, 'open')
|
||||
atom.openInitialEmptyEditorIfNecessary()
|
||||
expect(atom.workspace.open).toHaveBeenCalledWith(null)
|
||||
expect(atom.workspace.open).toHaveBeenCalledWith(null, {pending: true})
|
||||
})
|
||||
|
||||
it('does not open an empty buffer when a buffer is already open', async () => {
|
||||
|
@ -927,7 +927,7 @@ class AtomEnvironment {
|
||||
if (!this.config.get('core.openEmptyEditorOnStart')) return
|
||||
const {hasOpenFiles} = this.getLoadSettings()
|
||||
if (!hasOpenFiles && this.workspace.getPaneItems().length === 0) {
|
||||
return this.workspace.open(null)
|
||||
return this.workspace.open(null, {pending: true})
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user