Note the synchronous loading of Tokenized Buffer

This commit is contained in:
probablycorey
2013-10-10 11:26:05 -07:00
parent 29a9a9d2ed
commit b95b3148c9

View File

@@ -30,6 +30,8 @@ class TokenizedBuffer
constructor: (optionsOrState) ->
if optionsOrState instanceof telepath.Document
@state = optionsOrState
# TODO: This needs to be made async, but should wait until the new Telepath changes land
@buffer = project.bufferForPath(optionsOrState.get('bufferPath'))
else
{ @buffer, tabLength } = optionsOrState