MagicStack / MagicStack/MagicPython

Ability to colorize imports?

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

還沒有人認領這個 Issue。

主要語言
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. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

未指定檔案、測試或進入點。在使用 Dark+ 主題的 VSCode 1.49.0 中重現所提供的匯入範例,然後追蹤 MagicPython 如何將匯入的類別標記化;完成這項工作需要明確決定是否支援這種語法醒目提示,若支援,則需要為所示程式碼取得經過驗證的結果。

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

評估

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

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

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