mirror of
https://github.com/atom/atom.git
synced 2026-02-16 01:25:13 -05:00
Return an update promise in TextEditor.prototype.update()
This commit is contained in:
@@ -234,6 +234,11 @@ class TextEditor extends Model
|
||||
if resetDisplayLayer
|
||||
@resetDisplayLayer()
|
||||
|
||||
if @editorElement?
|
||||
@editorElement.views.getNextUpdatePromise()
|
||||
else
|
||||
Promise.resolve()
|
||||
|
||||
serialize: ->
|
||||
tokenizedBufferState = @tokenizedBuffer.serialize()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user