microsoft / microsoft/TypeScript

Feedback on Expandable hovers for JavaScript and TypeScript

未关闭
#62,386 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
Awaiting More Feedback Suggestion
主要语言
Go
星标
111k
派生
14.3k
平均合并
2 天 4 小时
30 天内合并 PR
132

描述

Type: Feature Request

Should you show function overloads on hover expansion ?

e.g. for `Url.parse` :

Initial hover :

```typescript
function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean | undefined): Url.UrlWithParsedQuery (+3 overloads)
...
```

Hover expanded :

```typescript
function parse(urlString: string): UrlWithStringQuery;
function parse(
urlString: string,
parseQueryString: false | undefined,
slashesDenoteHost?: boolean,
): UrlWithStringQuery;
function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
...
```

VS Code version: Code 1.103.2 (6f17636121051a53c88d3e605c491d22af2ba755, 2025-08-20T16:45:34.255Z)
OS version: Linux x64 6.8.0-55-generic
Modes:

贡献指南

打开贡献指南

调研方向

该 issue 提供了一个 TypeScript/JavaScript hover 示例,但没有指出源文件、测试或实现入口。首先定位语言服务的 hover 处理逻辑和现有的 hover 展开测试,然后确认展开函数 hover 后会显示其 overloads,同时初始 hover 仍保持简洁。

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

评估

技术栈
javascript, typescript, vscode
领域
developer-experience, tooling
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

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