MagicStack / MagicStack/MagicPython
Ability to colorize imports?
还没有人认领这个 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:

-
5-10 lines of surrounding code:
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!
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定文件、测试或入口点。在使用 Dark+ 主题的 VSCode 1.49.0 中重现所提供的导入示例,然后跟踪 MagicPython 如何对导入的类进行标记化;完成这项工作需要明确决定是否支持这种高亮显示,并且如果支持,需要为所示代码得到经过验证的结果。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, python, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100