Is it possible to highlight all decorators the same?

未關閉
#178 0 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
35/100
Issue 類型
功能
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
python, vscode
領域
tooling

研究方向

先檢查語法醒目提示器如何為 Python 裝飾器指派 support.type.pythonmeta.function.decorator.python 作用域,然後確認 VS Code 主題作用域的優先順序如何處理它們。確定主題是否能一致地為所有裝飾器著色,並記錄或實作受支援的行為,即表示完成。

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

描述

  • Editor name and version: VS Code 1.33.0
  • Platform: Windows 10 1809
  • Color scheme: Pycharm Dracula Style (WIP)
  • MagicPython version: 1.1.0

First of all congrats on the great project!

I've begun working on a theme to make VS Code look similar to PyCharm. I would like to have all decorators highlighted with the same color regardless of type. At the moment the scope 'support.type.python' is prioritized over 'meta.function.decorator.python'. You can see this demonstrated in the example below for the property decorator. I get why the current order is more desirable, but is it possible to somehow override it within the theme?

decorator_example

主要語言
JavaScript
星號
1.4k
分支
98
PR 合併指標
30 天內沒有已合併 PR

貢獻指南

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

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

MagicStack/MagicPython 的其他 Issue

查看 MagicStack/MagicPython 的全部 Issue

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

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