microsoft / microsoft/TypeScript
Autocomplete static methods and fields
未关闭
还没有人认领这个 Issue。
Awaiting More Feedback
Suggestion
- 主要语言
- Go
- 星标
- 111k
- 派生
- 14.4k
- 平均合并
- 1 天 19 小时
- 30 天内合并 PR
- 117
描述
Context
We should be able to autocomplete exported static variables, static functions, and enums
Reference
Intellij has this functionality, shown here:
Intellij blogpost about this feature: https://blog.jetbrains.com/idea/2012/08/complete-static-methods-and-fields-with-the-new-intellij-idea-12-eap-build-12229/
Example
// File 1
export class ExampleClass {
static fooBar(): any {
return {}
}
}
// File 2
fooBa // typing this should suggest ExampleClass.fooBar
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先复现这个包含两个文件的 TypeScript 示例:在 File 1 中定义导出的静态方法,并在 File 2 中输入名称的一部分。阅读现有的 autocomplete 和 language-service 入口点,以确定导出的静态变量、函数和 enum 在哪里被收集。当预期的静态成员作为建议出现在第二个文件中时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100