Skip to content

Completion for type parameters doesn't work when used as first type argument of type reference in a TSX file #4512

@DanielRosenwasser

Description

@DanielRosenwasser

Given any of the following:

interface I<T1,T2> {
    next: I</*interface*/
}

type T<T1,T2> = {
    next</*typeAlias*/
}

class C<T1,T2> {
    next: C</*class*/
}

we do not give completion for T1 nor T2. However, if you add a comma following at least one type argument, you do get both T1 and T2` for the next type argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for 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