Emit decoration events synchronously in legacy spec environment

This is needed to keep a bunch of package tests passing that expect
synchronous decoration updates.
This commit is contained in:
Nathan Sobo
2015-11-04 11:26:07 -08:00
parent 5e9cec2ec7
commit 9714f2e729
3 changed files with 14 additions and 1 deletions

View File

@@ -506,6 +506,9 @@ class TextEditor extends Model
isMini: -> @mini
setUpdatedSynchronously: (updatedSynchronously) ->
@displayBuffer.setUpdatedSynchronously(updatedSynchronously)
onDidChangeMini: (callback) ->
@emitter.on 'did-change-mini', callback