abe33 / abe33/atom-color-highlight

TextEditor.get is deprecated.

Open
#108 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CoffeeScript
Stars
80
Forks
8
PR merge metrics
No merged PRs in 30d

Description

`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 (/usr/share/atom/resources/app.asar/src/text-editor.js:101:14)
atom-color-highlight.updateSelections (/home/nico/.atom/packages/atom-color-highlight/lib/atom-color-highlight-element.coffee:150:22)
atom-color-highlight.setModel (/home/nico/.atom/packages/atom-color-highlight/lib/atom-color-highlight-element.coffee:129:19)
createView (/home/nico/.atom/packages/atom-color-highlight/lib/atom-color-highlight-element.coffee:339:15)
ViewRegistry.createView (/usr/share/atom/resources/app.asar/src/view-registry.js:117:78)
ViewRegistry.getView (/usr/share/atom/resources/app.asar/src/view-registry.js:84:21)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.