abe33 / abe33/atom-color-highlight

Function.extractParams is deprecated.

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

描述

Hello,

> I get this message from Atom's Deprecation Cop

Assigning custom properties to a marker when creating/copying it is
deprecated. Please, consider storing the custom properties you need in
some other object in your package, keyed by the marker's id property.
```
Function.extractParams (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/marker.js:43:14)
MarkerLayer.markRange (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/marker-layer.js:196:71)
DisplayMarkerLayer.markBufferRange (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/display-marker-layer.js:90:62)
TextEditor.markBufferRange (/usr/share/atom/resources/app.asar/src/text-editor.js:1753:38)
AtomColorHighlightModel.createMarker (/home/nico/.atom/packages/atom-color-highlight/lib/atom-color-highlight-model.coffee:199:26)
(/home/nico/.atom/packages/atom-color-highlight/lib/atom-color-highlight-model.coffee:140:32)
```

貢獻指南

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

研究方向

The deprecation originates from the marker creation in atom-color-highlight-model.coffee at line 199. Look at the marker creation pattern and the custom properties being assigned. Check Atom's deprecation documentation for marker handling and refactor to store properties keyed by marker id. Test by running the package in Atom's dev mode and verifying no deprecation warnings appear.

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

評估

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

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

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