mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Add shim for TextEditor.languageMode, will deprecate later
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user