HTML Custom Element Go-To-Definition Behavior

When you are in an #html file, and you want to go-to-definition for a custom element, what do you think the behavior should be? Should it go to: - type definition - JS file where the class is defined - CEM entry - something else #webcomponents #javascript

...or do we need anything? Standard HTML doesn't do anything.

Like
Reply

Library code: Type Def Local file: JS/TS code file CEM entry as a fallback

I only keep one index.html in the entire app. It calls a TS startup program. That builds the DOM by returning the web components the user is routed to. Each component is defined in a TS file matching its custom element name.

Like
Reply

File and line where the class is defined, IMO

See more comments

To view or add a comment, sign in

Explore content categories