Skip to content

Go-to-def on object literal shorthand misbehaves #1112

Open
@jakebailey

Description

@jakebailey

With:

interface Something {
    foo: string;
}

function makeSomething(foo: string): Something {
    return { foo };
}

Go-to-def on foo in the object literal goes to the name in the object literal, as opposed to the parameter or even the foo in Something. (I can't recall which is correct. Both?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: EditorRelated to the LSP server, editor experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions