Skip to content

Use declared type parameters in signature help #15412

Description

@mjbvz

From: microsoft/vscode#25363

TypeScript Version: 2.3.1

Code

type Z = { abc: number, xyz: string }

function foo<T>(z: keyof T) { }

foo<Z>('')

Trigger suggestions inside of the quotes in the function call.

Expected behavior:
Returns suggestions for abc and xyz

Actual behavior:
No suggestions returned in this case.

If a non-generic type is used:

type Z = { abc: number, xyz: string }

function foo(z: keyof Z) { }

foo('')

Then suggestions are returned

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions