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

Autocompletion for lib components for the first time #736

Open
3 tasks done
andredewaard opened this issue Feb 7, 2024 · 0 comments
Open
3 tasks done

Autocompletion for lib components for the first time #736

andredewaard opened this issue Feb 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@andredewaard
Copy link

Clear and concise description of the problem

Right now my understanding of this plugin is that it scans the whole codebase and only add the components from a resolver that are used in the components.d.ts file.
But this doesn't give you autocompletion when you use the component for the first time.

Let say i want to use the PopoverTrigger component from radix-vue i first need to remember (of look up) the name of this component, use it, and let this plugin add it to components.d.ts before i get autocompletion.
Would be nice to already have these files in components.d.ts so we dont need to remember it and can just start typing <Popove.... and it will autocomplete all options.

Suggested solution

Add all components from a library to components.d.ts by default.

Alternative

This does add a lot of overhead to the dev server but isn't used in production anyway.

Additional context

Or am i missing something?

Validations

@andredewaard andredewaard added the enhancement New feature or request label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant