OctoTern icon indicating copy to clipboard operation
OctoTern copied to clipboard

Resolve export members

Open jamestalmage opened this issue 9 years ago • 1 comments

This will probably be pretty tricky:

// my-module.js

module.exports.foo = function () {};
module.exports.bar = function () {};
// index.js
var myModule = require('./my-module.js');

myModule.foo(); // make foo clickable here

I'm not sure how best to tackle this, especially since there are all sorts of scenarios where it wouldn't work, and you would have to give up.

I think probably the best is to just linkify anything you think you might be able to resolve, and then make ajax calls for the dependency when they click, try and resolve it, then redirect (popping up a "Sorry!" message when you fail to resolve).

jamestalmage avatar Jun 10 '16 17:06 jamestalmage

I agree this would be nice, but I don't anticipate having time to do this myself.

mattzeunert avatar Jun 12 '16 17:06 mattzeunert