forked from runem/lit-analyzer
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
there seems to be a proposed implementation on the original repository
problem:
this syntax is not being parsed by the plugin:
// from https://lit.dev/playground/#sample=examples/hello-world
import {html, css, LitElement} from 'lit';
export class SimpleGreeting extends LitElement {
static styles = css`p { color: blue }`;
static properties = { // <- it's this syntax, attribute is not detected in syntax completion
name: {type: String},
};
constructor() {
super();
this.name = 'Somebody';
}
render() {
return html`<p>Hello, ${this.name}!</p>`;
}
}
customElements.define('simple-greeting', SimpleGreeting);
i.e. , when I try to a syntax completion for the "name" attribute, plugin doesn't show suggestions. but when I try for syntax completion of ".name" property, plugin works.
Metadata
Metadata
Assignees
Labels
No labels