3 ms·
>Actually, tern has tern-find-definition which works not only in a single file. I haven't been able to make this work outside my current file. Perhaps I'm just
by scottaj2 11y ago
>Actually, tern has tern-find-definition which works not only in a single file.
I haven't been able to make this work outside my current file. Perhaps I'm just configuring tern wrong :(
- ibabanov 11y agoThis .tern-project config works for me: { "libs": [ "browser" ], "plugins": { "node": {}, "es_modules": {} } } Your project files must have "correct" format, e.g. require('relative_path') for imports and module.exports/exports for exports (or es6 import and export). Example for AMD format (requireJS) can be found here - http://ternjs.net/doc/manual.html#configuration http://ternjs.net/doc/manual.html#configuration
- base698 11y agoI can't get it to search outside the standard node files using the above config. I can't get it to be aware of my code in the project.