Custom Elements Language Server provides useful language features for Web Components. Features include code actions, completions, diagnostics and more.
BSD 3-Clause "New" or "Revised" License
84
stars
0
forks
source link
Report type errors in attributes & properties of elements #17
I would want to get diagnostic help when the typing of my attribute doesn't match the one provided.
e.g.
<my-component variant="foobar"></my-component>
Should throw an diagnostics error and underline the variant="foobar" section of the component with an error message like Type '"foobar"' is not assignable to type 'ComponentVariant'
Given I have an elements
I would want to get diagnostic help when the typing of my attribute doesn't match the one provided.
e.g.
Should throw an diagnostics error and underline the
variant="foobar"
section of the component with an error message likeType '"foobar"' is not assignable to type 'ComponentVariant'