Skip to content

No completions for computed string properties #29880

@DanielRosenwasser

Description

@DanielRosenwasser
const otherThing = "otherThing";

interface Foo {
    ["thing"]: number;
    [otherThing]: string;
}

declare var x: Foo;
x./**/

Expected: completions for thing and [otherThing].
Actual: completions for only [otherThing]

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions