microsoft / microsoft/TypeScript
[JavaScript/TypeScript Language Hints] Hide default `Function` properties/methods until manually typed just like in Rust.
还没有人认领这个 Issue。
- 主要语言
- Go
- 星标
- 111k
- 派生
- 14.3k
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 132
描述
Right now if I create a class with static methods/properties or via namespace, it's very hard to distinguish between default and custom ones visually.
I propose to hide those default methods, they are not useful to know for beginners, while for experienced ones, it's noisy. Leaving only defined in classes/namespaces.
I'm looking from Rust lang analyzer extension perspective, which does exactly that, and I feel like it's much more convenient, especially if there will be more properties/methods in future.
If the property is fully typed correctly, e.g. Test.call, the hint will appear just like typing Test.constructor, it's not appearing, but when typed - the hint appears with Function.
This can be an option to enable/disable.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先复现 issue 中描述的类和命名空间补全示例,然后将当前的 TypeScript 语言提示与 Rust analyzer 的行为进行比较。完成的标准是:默认的 Function 成员在被显式指定类型之前处于隐藏状态,同时自定义成员保持可见,并考虑提供启用/禁用选项。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, typescript
- 领域
- developer-experience, tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100