Skip to content

Jump to definition doesn't work from export es6 syntax #1050

@abose

Description

@abose

Hi,

There are two files

// index.js
export {List} from "./list"

// list.js
export class List {}

from index.js, if we issue definition command from location {Li<cursor>st}, it doesn't resolve the jump target.
But if we change the export statement to import it works as expected.

It looks like Jump to definition is not considering the specific export syntax.

Please try the above code in tern-js playground: https://ternjs.net/doc/demo/index.html#ES6

Thanks,
Arun.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions