redhat-developer/vscode-java

Pass the function signature in the detail property of the completion item instead of the label

Open

#685 创建于 2018年10月23日

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)TypeScript (543 fork)auto 404
content-assistenhancementhelp wantedsignature help

仓库指标

Star
 (2,295 star)
PR 合并指标
 (PR 指标待抓取)

描述

Based on the gif in the README and the snapshots in https://github.com/Microsoft/vscode/issues/29126#issuecomment-432262123, it looks like this extension is appending the function signature to the function name in the label of the completion item.

This makes the reading of the items hard, especially when the docs are expanded to the side (Hit Ctrl+Space to show/hide the docs once the suggest widget is open)

The CompletionItem has a property called detail. Most extensions use this property to pass the signature. Below is a typsescript example:

image

image

I understand the temptation to include the signature as part of the label. It allows the user to choose the right item from the list at a glance. But this is only possible when the function name is small and docs are collapsed. Else, it just adds noise

image

贡献者指南