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

Show parameter quickinfo at the position of arguments #41297

Open
5 tasks
Kingwl opened this issue Oct 28, 2020 · 1 comment
Open
5 tasks

Show parameter quickinfo at the position of arguments #41297

Kingwl opened this issue Oct 28, 2020 · 1 comment
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript

Comments

@Kingwl
Copy link
Contributor

Kingwl commented Oct 28, 2020

Search Terms

quickinfo,parameter

Suggestion

If you call an function with many many arguments (and maybe with same type).
It's easy to lost your mind: Where I am? What i am doing? Which parameter I'm passing?
It's helpful if show the parameter info when hover into one arguments.

Examples

declare function foo(
    p1: string,
    p2: string,
    p3: string,
    p4: string,
    p5: string
): void;

declare const a: string[]

foo(
    a[0],
    a[1], // ???
    a[2],
    a[3],
    a[4]
)

Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
  • This feature would agree with the rest of TypeScript's Design Goals.
@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented Oct 28, 2020

For the record, you can manually trigger signature help. On Windows/Linux it's Ctrl + Shift + Space.

But I get that that's not what this is asking for.

@RyanCavanaugh RyanCavanaugh added Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript labels Nov 10, 2020
@Kingwl Kingwl mentioned this issue Dec 23, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants