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

@stuffbreaker go to source for the class if it's available, or at least to the define call. Type definition as a fallback maybe.
@Lukew would it be useful even if it's uglified?
@stuffbreaker I guess type definition if it's uglified but source otherwise?
@Lukew That might be cleaner. How will the language server know which to choose?
@stuffbreaker well now, that's the fun bit for you to find out 😉.
(Never really worked with Lang servers so not sure tbh).

@Lukew thanks a lot! 😆

It may be a process detail for component authors and the files they reference in the CEM.

@stuffbreaker @Lukew IIRC it's possible for the LSP to provide multiple options and the IDE can put up a dialog with which one to choose.
@keithamus @Lukew I didn't know that. I'll have to check it out.
@stuffbreaker @keithamus I know for jetbrains plugins that do this sort of language stuff you definitely can. So it would make sense if the generic language server aspect had something similar.