Skip to content

Autocomplete for string attributes (e.g., class) is missing ="" in v3.3.0+ #6080

Description

@Hanmo123

Vue - Official extension or vue-tsc version

3.3.0+

VSCode version

1.122.1

Vue version

3.5.34

TypeScript version

6.0.3

System Info

package.json dependencies

Steps to reproduce

<div clas|></div>

Trigger autocomplete at the position |

What is expected?

<div class=""></div>

What is actually happening?

<div class></div>

(missing ="")

Link to minimal reproduction

No response

Any additional comments?

I noticed the change starting from v3.3.0. In v3.2.9 and earlier versions, the result used to be class="".

Is this new behavior intended?
If it is expected behavior, would it be possible to add a configuration option/setting to support automatically appending ="" for string attributes?
If it is unexpected, I hope this can be fixed to restore the previous behavior.

changelog: https://github.com/vuejs/language-tools/blob/master/CHANGELOG.md#330-2026-05-18
fix: strip ="" only for plain boolean props completion edits - Thanks to @KazariEX!
feat: refine props completion logic to follow TS behavior (#5709) - Thanks to @KazariEX!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions