MagicStack / MagicStack/MagicPython

Ability to colorize imports?

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

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

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

説明

* **Editor name and version**: VSCode 1.49.0
* **Platform**: Windows 10
* **Color scheme**: Dark+
* **MagicPython version**: Installed via Python extension v2020.8.108011
* **A sreenshot**:
![image](https://user-images.githubusercontent.com/1827631/93114728-cbd8b080-f66f-11ea-9cf1-0721c9b1689b.png)

* **5-10 lines of surrounding code**:

```python
from django.utils import timezone
from django.views import generic

from .models import Question, Choice

class IndexView(generic.ListView):
template_name = 'polls/index.html'
context_object_name = 'latest_questions'

def get_queryset(self):
return Question.active_objects.all().order_by('-pub_date')[:5]

class DetailView(generic.DetailView):
model = Question
template_name = 'polls/detail.html'

class ResultsView(generic.DetailView):
model = Question
template_name = 'polls/results.html
```

Just as the above code snippet does, is it possible to colorize class imports in VSCode?

I've tried searching the web for an answer on this topic but couldn't find one; I'm submitting an issue here in hopes of someone either telling me that this is _intended_ but not working, or that this is not supported.

Thanks for any info!

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

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

はじめの一歩

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

調査の方向性

ファイル、テスト、エントリポイントは指定されていません。Dark+ テーマを使用した VSCode 1.49.0 で提示された import の例を再現し、その後、MagicPython がインポートされたクラスをどのようにトークン化するかを追跡してください。この作業の完了には、このハイライト表示がサポートされているかどうかについて明確な判断を下し、サポートされている場合は、示されたコードに対する検証済みの結果を得ることが必要です。

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

評価

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

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

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