Skip to content

tsserver: completion for union type of literal and string is broken from 2.1 #12687

Closed
@wonderful-panda

Description

@wonderful-panda

TypeScript Version: 2.1.1

Code

type Test = "foo" | "bar" | string;
const x: Test = "/* CURSOR POSITION */";

Expected behavior:
tsserver returns "foo" and "bar" as completion candidates.

Actual behavior:
2.0.10 behaves as expected.
2.1.1 returns no candidates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editor

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions