tern icon indicating copy to clipboard operation
tern copied to clipboard

Jump to definition doesn't work from `export` es6 syntax

Open abose opened this issue 3 years ago • 0 comments
trafficstars

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.

abose avatar Aug 10 '22 07:08 abose