aki77 / atom-expand-region

expanding selection
https://atom.io/packages/expand-region
MIT License
89 stars 9 forks source link

TextEditor.get is deprecated. #20

Closed NKjoep closed 7 years ago

NKjoep commented 7 years ago

TextEditor.prototype.displayBuffer has always been private, but now it is gone. Reading the displayBuffer property now returns a reference to the containing TextEditor, which now provides some of the API of the defunct DisplayBuffer class.

TextEditor.get (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:101:14)
Function.selectScope (/Users/andreadessi/.atom/packages/expand-region/lib/selector.coffee:60:28)
<unknown> (/Users/andreadessi/.atom/packages/expand-region/lib/selector.coffee:22:32)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:2467:13)
TextEditor.mergeSelections (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:2544:18)
TextEditor.mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:2506:35)
sgsvnk commented 7 years ago

@aki77 Same issue with me here.

megalofauna commented 7 years ago

+1

chrisduong commented 7 years ago

+1