Skip to content

Autocompletion for lib components for the first time #736

@andredewaard

Description

@andredewaard

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions