Skip to content

Autocomplete for props with union type #3698

Closed
@Renhor

Description

@Renhor

Now autocomplete works properly only if i try to bind union props like this:

<AppTypography :variant="'h1'" />

And it doesn't give me any autocomplete tips if i use non-bind style:

<AppTypography variant="h1" />

UPD: Fresh VS Code profile with Volar + TS enabled only.
UPD 2: Not works when VS Code autocomplete quotes("") after = sign (ex: my-props="", happens when VS Code suggest autocomplete for prop and we choose it). If we remove quotes and enter them by ourselves, autocomplete works again

Reproduction:
https://github.com/Renhor/volar-autocomplete

Video:

Screen.Recording.2023-11-01.at.01.14.17.mov

A more precise case:

Screen.Recording.2023-11-01.at.18.35.26.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    good reproduction ✨This issue provides a good reproduction, we will be able to investigate it first🔨 p3-minor-bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions