LS crash when switching to script lang "ts" from "js" in "typeScriptPluginOnly" hybrid mode #5126
Labels
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
🔨 p3-minor-bug
Vue - Official extension or vue-tsc version
2.2.0
VSCode version
1.96.3
Vue version
3.5.13
TypeScript version
5.7.2
System Info
package.json dependencies
Steps to reproduce
Set Volar to use the Hybrid Mode to
typeScriptPluginOnly
, and create a.vue
file, with ascript setup
tag.Add some code inside, then add the
lang="ts"
attribute to thescript
tag. Type some more code, and it shouldn't take very long for this to show up:If it doesn't happen for some reason, maybe add a template tag too with some dummy code and try it again.
What is expected?
I should be able to just change the language used in the
script
tag without any crashes. At the moment, I'm forced to restart the extension host every time.What is actually happening?
It's happened multiple times in multiple files, so I don't think this is my fault.
Link to minimal reproduction
No response
Any additional comments?
The reason I'm currently choosing to use the
typeScriptPluginOnly
setting on Hybrid Mode is because I've noticed it makes my LSP experience significantly faster.The only downside I've noticed so far is that it can't keep track of new files added to my project that way, and I have to manually import them or restart the extension host.
But if that's all I can find for now, it's miles better than the sluggish experience of full Hybrid Mode. I just can't get it to work smoothly with my project. I blame the usage of Nuxt auto-imports alongside my large auto-generated Prisma client, but I have no alternatives right now.
The text was updated successfully, but these errors were encountered: