Skip to content

fix support the + - in hover panel #2974#4116

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:2974
Open

fix support the + - in hover panel #2974#4116
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:2974

Conversation

@asukaminato0721

@asukaminato0721 asukaminato0721 commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #2974

Added VS Code +/− hover verbosity controls.

Compact hovers preserve named union aliases; expanded hovers reveal their members.

Added the custom client/server hover protocol while preserving standard LSP behavior.

Raised the extension requirement to VS Code 1.103 for hover verbosity support.


why there is an extra .d.ts:

Because hover verbosity is still a proposed VS Code API. The stable @types/vscode package does not declare VerboseHover, HoverContext and the fourth provideHover argument.

In TypeScript, there are multiple expand levels.

Here we simplified it to only compact and expand.

Test Plan

add test

@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support the + - in hover panel

1 participant