mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Immediately fetch new buffers' git status in GitRepository
We used to emit buffer added events before the buffers were loaded, so we would end up fetching their git status soon afterwords, when they emitted the did-reload event.
This commit is contained in:
@@ -437,6 +437,7 @@ class GitRepository
|
||||
if bufferPath = buffer.getPath()
|
||||
@getPathStatus(bufferPath)
|
||||
|
||||
getBufferPathStatus()
|
||||
bufferSubscriptions = new CompositeDisposable
|
||||
bufferSubscriptions.add buffer.onDidSave(getBufferPathStatus)
|
||||
bufferSubscriptions.add buffer.onDidReload(getBufferPathStatus)
|
||||
|
||||
Reference in New Issue
Block a user