abe33 / abe33/atom-color-highlight

TextEditor.get is deprecated.

未關閉
#108 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
CoffeeScript
星號
80
分支
8
PR 合併指標
30 天內沒有已合併 PR

描述

`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)
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

The issue mentions a deprecation in TextEditor.get and a reference to atom-color-highlight-element.coffee line 150. Start by examining that file to see how TextEditor.get is used. Check the Atom API documentation for the new method to replace the deprecated one. Run the package's tests to ensure the fix works.

由索引模型根據 Issue 內容生成。

評估

領域
desktop
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。