Skip to content

Autocompletion in typeof expressions does not work #29099

@hediet

Description

@hediet

TypeScript Version: 3.3.0-dev.20181219

Search Terms:
Autocompletion, typeof, parameter, function
Code

const x = "str";

function test(arg: typeof x./* | */length) {
}

Expected behavior:
image
Even though parenthesis aren't allowed, autocompletion works in them. It should also work for the example above.

Actual behavior:
image
Autocompletion does not work for the members of x in the typeof expression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".FixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions