faceair / atom-goto-definition

⚠️⚠️⚠️ DEPRECATED
https://atom.io/packages/goto-definition
GNU General Public License v2.0
99 stars 51 forks source link

Can't recognise path and node modules in import #87

Closed pingshunhuangalex closed 7 years ago

pingshunhuangalex commented 7 years ago

When using import, it's quite common to omit the file extension. However, instead of going to the path defined, it spits out a bunch of possible guesses in node modules.

For example, when you try to go to some thing like:

import example from './example'

it'll go to the file with name example in the same folder, it just lists a long list of files in node modules where example may appear. Hope this can be fixed. Thanks.