japanese-wrap icon indicating copy to clipboard operation
japanese-wrap copied to clipboard

TextEditor.displayBuffer is deprecated.

Open marucome09 opened this issue 7 years ago • 2 comments

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.displayBuffer (<embedded>:2601:16)
<unknown> (C:\Users\earth\.atom\packages\japanese-wrap\lib\japanese-wrap.coffee:53:74)
<unknown> (<embedded>:28167:22)
Function.module.exports.Emitter.simpleDispatch (<embedded>:65955:20)
Emitter.emit (<embedded>:66071:34)
<unknown> (<embedded>:28021:34)

marucome09 avatar Jan 28 '18 11:01 marucome09

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.displayBuffer - :2472:16 - C:\Users\user.atom\packages\japanese-wrap\lib\japanese-wrap.coffee:53:74 Workspace.observeTextEditors - :28519:59 Object.activate - C:\Users\user.atom\packages\japanese-wrap\lib\japanese-wrap.coffee:51:29 Package.activateNow - :72542:33 measure - :72518:33

tkoichirou avatar Apr 28 '18 00:04 tkoichirou

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.displayBuffer - :2472:16 - C:\Users\user.atom\packages\japanese-wrap\lib\japanese-wrap.coffee:60:72 onDidAddTextEditor - :28520:60 Function.module.exports.Emitter.simpleDispatch - :66317:20 Emitter.emit - :66433:34 onDidAddPaneItem - :28401:28

tkoichirou avatar Apr 28 '18 00:04 tkoichirou