You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
define(function (require, exports, module) {
"use strict";
function MyClass() {
}
MyClass.prototype = Object.create(Superclass.prototype);
MyClass.prototype.constructor = MyClass;
MyClass.prototype.parentClass = Superclass.prototype;
MyClass.prototype.func1 = function () {
};
MyClass.prototype.func2 = function () {
};
MyClass.prototype.func3 = function () {
};
});
Put the cursor in any of the function bodies
Type this.
Result: hints have no suggestions other than generic italic ones
Expected: even if the superclass is unknown, it should at least be able to hint the three known members func1 through func3. Because of the prototype chaining order, there's no way the nature of the superclass prototype could affect those properties.
This has been true as long as the Tern-based code hints have existed, afaict.
One real-world use case is writing extensions that subclass a core Brackets class (e.g. InlineWidget) -- because we don't grok brackets.getModule() references, the superclass will always be unknown.
The text was updated successfully, but these errors were encountered:
Start with this code:
this.
Result: hints have no suggestions other than generic italic ones
Expected: even if the superclass is unknown, it should at least be able to hint the three known members
func1
throughfunc3
. Because of the prototype chaining order, there's no way the nature of the superclass prototype could affect those properties.This has been true as long as the Tern-based code hints have existed, afaict.
One real-world use case is writing extensions that subclass a core Brackets class (e.g. InlineWidget) -- because we don't grok
brackets.getModule()
references, the superclass will always be unknown.The text was updated successfully, but these errors were encountered: