vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.55k stars 373 forks source link

VS Code IntelliSense will be lost in new created files #4424

Open EsunR opened 4 weeks ago

EsunR commented 4 weeks ago

IntelliSense is working in existing files:

image

But when I create a new file (.js or .vue), vscode IntelliSense not working at all:

image

image

After disable Vue - Official extension, everything is ok. So I guess that's maybe this extension question.

gustavotoyota commented 3 weeks ago

What's going on with Vue in VSCode? The official extension is unusable.

davidmatter commented 3 weeks ago

@so1ve @johnsoncodehk
Tested in insiders and stable vscode and with/without empty profile:

Not sure why the tsserver can't find this file. It only works after closing and reopening the file. This error has been bugging me on and off even before version 2.0. Let me know if you need more information.

davidmatter commented 3 weeks ago

Huh, it works if I set typescript.tsserver.experimental.useVsCodeWatcher to false. Otherwise, the tsserver can't find newly created vue files. Might be relevant to you, @johnsoncodehk

davidmatter commented 3 weeks ago

Relevant: https://code.visualstudio.com/updates/v1_89#_file-watching-handled-by-vs-code-core

davidmatter commented 3 weeks ago

Created bug report @ vscode - I think they should be aware of the effects of the new default https://github.com/microsoft/vscode/issues/214226

xakoy commented 1 week ago

Huh, it works if I set typescript.tsserver.experimental.useVsCodeWatcher to false. Otherwise, the tsserver can't find newly created vue files. Might be relevant to you, @johnsoncodehk

thanks. It's work.