Add shim for TextEditor.languageMode, will deprecate later

This commit is contained in:
Max Brunsfeld
2017-09-22 21:06:15 -07:00
parent e14aa842ff
commit 9abcad11e4

View File

@@ -122,6 +122,8 @@ class TextEditor extends Model
this
)
Object.defineProperty(@prototype, 'languageMode', get: -> @tokenizedBuffer)
@deserialize: (state, atomEnvironment) ->
# TODO: Return null on version mismatch when 1.8.0 has been out for a while
if state.version isnt @prototype.serializationVersion and state.displayBuffer?