mjbvz / vscode-lit-html

Adds syntax highlighting for html inside of JavaScript and TypeScript tagged template strings
https://marketplace.visualstudio.com/items?itemName=bierner.lit-html
MIT License
318 stars 75 forks source link

No Intellisence for attributes/properties. #75

Open rbiggs opened 4 years ago

rbiggs commented 4 years ago

I'm noticing that there is no Intellisense nor code completion for events @click, name, value or other common attributes and properties. In contrast, when using JSX with the React index.d.ts has a global names JSX which defines and exposes attributes, custom properties and events. Shouldn't it be possible to provide similar TypeScript interfaces to expose Lit-HTML events and attributes the same way?

Here's a gist for reference of what I use in my projects so I can use JSX without react: https://gist.github.com/rbiggs/9f158608bebfa722a02662d558440df1