Skip to content

Use insertText to add string literal completions #21408

Closed
@ghost

Description

TypeScript Version: 2.8.0-dev.20180125

Code

const x: "a" | "b" = /**/

Expected behavior:

Get "a" and "b" as completions (in addition to global symbols).

Actual behavior:

No useful completions.

Issue from #21372 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions