Open akc42 opened 7 years ago
I've had the same problem with methods defined in a Mixin not being recognized. Was able to solve it by adding the proper doc-comments to both the Mixin and the Element using the mixin to make the analyzer (and thus the plugin) know about it.
/**
* My Mixin
* @polymer
* @mixinFunction
*/
MyMixin = (superClass) => class extends superClass {
...
};
/**
* My Custom Element
* @polymer
* @customElement
* @appliesMixin MyMixin
*/
class MyElement extends MyMixin(Polymer.Element) {
...
}
Thanks @Scarygami!
I have a mixin to provide properties to elements for the current user.
When I used these properties in a data binding in an element that extends that mixin and Polymer.Element I am getting a squiggly green line under the property with a hover over error that polymer-ide cannot find the property.
Its also the case that reference to the property in the use of that element at a higher level also causes that use to attract a green line.