Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abose opened this issue Aug 10, 2022 · 0 comments
Open

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

abose opened this issue Aug 10, 2022 · 0 comments

Comments

@abose
Copy link

abose commented Aug 10, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant