tern icon indicating copy to clipboard operation
tern copied to clipboard

TernDef can't transverse files from nodejs project

Open trevnorris opened this issue 9 years ago • 1 comments
trafficstars

Hopefully I'm missing something, but seems that TernDef can't figure out where a definition is when working within https://github.com/nodejs/node itself. Probably because all the require's are the same as that of core modules. e.g. require('buffer'). (note: I'm using tern_for_vim)

Is there any way to configure tern to look for core modules in, say, the lib/ folder of the project?

trevnorris avatar Oct 10 '16 18:10 trevnorris

You could add a configuration option to the node plugin that can be used to disable the built-in packages, and enable that in the .tern-project for the node source itself. That's a rather specialized case, but if you submit a PR, I'll merge it.

marijnh avatar Oct 11 '16 07:10 marijnh