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
Trigger autocomplete at the position |
What is expected?
What is actually happening?
(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!
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
Trigger autocomplete at the position
|What is expected?
What is actually happening?
(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.