Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there a way to narrow down the amount of information that goes to the member info tooltip of intellisense? #6070

Open
zpdDG4gta8XKpMCd opened this issue Dec 11, 2015 · 3 comments
Labels
Domain: Quick Info e.g. hover text, tool-tips, and tooltips. Effort: Moderate Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual". Help Wanted You can do this Suggestion An idea for TypeScript
Milestone

Comments

@zpdDG4gta8XKpMCd
Copy link

Namely, is there a way to opt out from seeing:

  • union/intersection type constituens
  • members of a type alias referring to an anonymous product type?

img_11122015_142244

@DanielRosenwasser DanielRosenwasser added the Suggestion An idea for TypeScript label Dec 12, 2015
@DanielRosenwasser
Copy link
Member

We should consider either performing a text cutoff (in certain positions) on union/intersection members for quick info, or just consider using the type alias in those positions.

@sandersn
Copy link
Member

Just showing the alias is the right thing to do here. An alias serves mainly as documentation in Typescript, and intellisense tooltips are documentation.

@DanielRosenwasser DanielRosenwasser added Needs Proposal This issue needs a plan that clarifies the finer details of how it could be implemented. Help Wanted You can do this Effort: Moderate Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual". and removed Needs Proposal This issue needs a plan that clarifies the finer details of how it could be implemented. labels Dec 12, 2015
@DanielRosenwasser
Copy link
Member

I think we'd be willing to take a PR on this if anyone's interested. The reason I listed this as moderate is because the code for the display part writer is a little hairy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Domain: Quick Info e.g. hover text, tool-tips, and tooltips. Effort: Moderate Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual". Help Wanted You can do this Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

5 participants