Style assignment causes language server to crash on repeat #5242
Labels
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
🔩 p2-edge-case
upstream: volar
Vue - Official extension or vue-tsc version
2.2.8
VSCode version
1.97.2
Vue version
3.15.13
TypeScript version
5.7.3
System Info
package.json dependencies
Steps to reproduce
Just copy the code above into a new component.
When typing anything after "width:" the server crashes each time.
Notice that the assignment is wrong. The ":"-Symbol is missing in front of the style attribute.
TypeError: Cannot read properties of undefined (reading 'type') at OZ (c:\Users\a\.vscode\extensions\vue.volar-2.2.8\dist\server.js:75:36515) at ese (c:\Users\a\.vscode\extensions\vue.volar-2.2.8\dist\server.js:99:15427) at r (c:\Users\a\.vscode\extensions\vue.volar-2.2.8\dist\server.js:99:17669) at async g (c:\Users\a\.vscode\extensions\vue.volar-2.2.8\dist\server.js:37:47437) at async Object.getCompletionItems (c:\Users\a\.vscode\extensions\vue.volar-2.2.8\dist\server.js:37:48241) at async c:\Users\a\.vscode\extensions\vue.volar-2.2.8\dist\server.js:66:25823 at async Immediate.<anonymous> (c:\Users\a\.vscode\extensions\vue.volar-2.2.8\dist\server.js:66:34395)
What is expected?
Show an error for the invalid object assignment syntax, but don't let the server crash.
What is actually happening?
The server is crashing repeadietly once you type anything behind "width:"
Link to minimal reproduction
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: