Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE | Autocomplete for web-components and their prop names and types #2056

Closed
Darkavid opened this issue Jul 13, 2023 · 4 comments
Closed

IDE | Autocomplete for web-components and their prop names and types #2056

Darkavid opened this issue Jul 13, 2023 · 4 comments
Labels
support Asking for help

Comments

@Darkavid
Copy link

Darkavid commented Jul 13, 2023

Scale Version
3.0.0-beta.56

Framework and version
Web-components with Vue3 and Vite.

Additional context
Hi!

The documentation says:
image

That is true, however, I think we can all agree that developer experience is not only about how cool something under the hood.
Proxy packages were really great because they provided the autocomplete suggestions for components and props in the IDE (e.g.: WebStorm). Without them, all I have is custom web-components added run-time, totally unknown by the IDE. Meaning, I have to rely only on basically pure text when using your components, which makes the frontend code hard to maintain and to refactor.

Please, help me, if you remove the proxy packages, what alternatives do I have to avoid losing autocomplete functionality for your package? How am I going to have type-check and autocomplete for components & props?

Maybe I'm just missing something here 😃

Many thanks!
Dave

@Darkavid Darkavid added the support Asking for help label Jul 13, 2023
@Darkavid Darkavid changed the title IDE | Autocomplete for web-components and thier prop names and types IDE | Autocomplete for web-components and their prop names and types Jul 13, 2023
@christopherGdynia
Copy link
Contributor

christopherGdynia commented Jul 18, 2023

Hello @Darkavid,

honestly I've never used vue yet,

I can give you a solution which worked for react and solid,
maybe you can find a solution based on this one here

If you need more help, you can reach out to me :)

Christopher

EDIT: Check this out,
you should be able to modify the answer from the link above to view :)

@Darkavid
Copy link
Author

Darkavid commented Mar 22, 2024

Hello team, Hi @christopherGdynia,

I have found it:
https://stenciljs.com/docs/docs-vscode

We can use this output in VSCode to get autocompletion for your custom webelements.
Otherwise, I'm just typing from the top of my head which is hardly considered to be a good DX in 2024.

Could you add this option to your stencil config for builds?

Thanks in advance!

@Darkavid
Copy link
Author

Darkavid commented Mar 22, 2024

An investigation with @christopherGdynia lead us to the following conclusions:

This makes this issue rather a bug than a support ticket.

Can you please fix this issue in your next release?

@amir-ba
Copy link
Collaborator

amir-ba commented Oct 23, 2024

will close in favor of #2302

@amir-ba amir-ba closed this as completed Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Asking for help
Projects
None yet
Development

No branches or pull requests

3 participants