Return an update promise in TextEditor.prototype.update()

This commit is contained in:
Antonio Scandurra
2016-07-08 09:42:08 +02:00
parent f6176c6dda
commit 811ab26f61
2 changed files with 22 additions and 11 deletions

View File

@@ -234,6 +234,11 @@ class TextEditor extends Model
if resetDisplayLayer
@resetDisplayLayer()
if @editorElement?
@editorElement.views.getNextUpdatePromise()
else
Promise.resolve()
serialize: ->
tokenizedBufferState = @tokenizedBuffer.serialize()