Skip to content

Goto declaration for default import behaves differently #9078

Description

// x.ts
export default 0;
export const x = 0;
export const y = 0;

// index.ts
import df, {x, y as z} from "./x";
[df, x, z];

Starting from the last line of index.ts, goto-declaration on x and z each go directly to x.ts. But for df it goes to the import first, and one must goto-declaration again to get to x.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions