Skip to content

Improve signature help when completing object argument #29041

@mjbvz

Description

@mjbvz

From microsoft/vscode#56270

TypeScript Version: 3.3.0-dev.20181214

Search Terms:

Code
For a simple TS File:

function foo(x: number, i: { ab: number, cd: number }) { }

foo(1, {

Trigger signature help on last line.

Problem:
We currently just display the entire type in signature help:

screen shot 2018-12-14 at 5 40 27 pm

Some possible quality of life improvements:

  • Underline which parameter you are currently typing and show its documentation
  • Show which parameters have already been completed vs which ones are missing

This is likely not supported by the current VS Code api. Opening this issue for further discussion on how this could be improved

/cc @DanielRosenwasser

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: LS: Signature HelpInformation in editor tooltips when invoking a function callNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions