microsoft / microsoft/TypeScript-TmLanguage

@template constraint and type name color in jsdoc

未关闭
#856 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
471
派生
149
PR 合并指标
30 天内没有已合并 PR

描述

Version: 1.54.0-insider (system setup)
Commit: 192c817fd350bcbf3caecae22a45ec39bae78516
Date: 2021-02-19T05:14:28.632Z
Electron: 11.2.3
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19042

In jsdoc, tokens of @typedef tag's content between curly braces and type name have entity.name.type.instance.jsdoc modifier.
изображение

So I suggest to add the same modifier to @template tag's content and type name
изображение

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先定位 JSDoc 的 TextMate grammar 规则,并将现有的 @typedef scope 与 @template 的内容和类型名称进行比较。更新相关的 scope modifier,使 @template 获得相同的类型实例着色,然后根据 issue 中的示例验证 grammar 输出。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
tooling
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。