tern
tern copied to clipboard
Completion proposals not found for this expression using requirejs
trafficstars
Run the simplified example in the demo.
main.js
requirejs(["lru"], function(lru) {
function foo() {
this.cache = new lru(30)
this.cache.
}
})
lru.js
define([], function() {
function LRU(size) {
//some constructor
this.name = "me";
}
//some prototype bashing
LRU.prototype.clear = function clear() {
console.log("hello");
};
return LRU;
});
If you try to get completions for the this.cache. expression nothing is returned - I would expect to see name and clear.
If you change the code to create a local variable instead of a this expression, you see the expected proposals.