MagicStack / MagicStack/MagicPython

Is it possible to highlight all decorators the same?

オープン
#178 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
JavaScript
スター
1.4k
フォーク
98
PR マージ指標
30日以内にマージされた PR はありません

説明

  • 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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、シンタックスハイライターで Python デコレーターに support.type.python スコープと meta.function.decorator.python スコープがどのように割り当てられているかを確認し、次に VS Code のテーマスコープの優先順位がそれらをどのように扱うかを確認します。テーマですべてのデコレーターを一貫して色付けできるかどうかを判断し、サポートされる動作を文書化または実装できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python, vscode
領域
tooling
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。