language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

VS Code IntelliSense will be lost in new created files

Open EsunR opened this issue 1 year ago • 7 comments

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.

EsunR avatar May 29 '24 13:05 EsunR

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

gustavotoyota avatar Jun 04 '24 00:06 gustavotoyota

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

  • Creating a new vue file throws the following error: image

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 avatar Jun 04 '24 11:06 davidmatter

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 avatar Jun 04 '24 11:06 davidmatter

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

davidmatter avatar Jun 04 '24 12:06 davidmatter

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

davidmatter avatar Jun 04 '24 12:06 davidmatter

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.

xakoy avatar Jun 14 '24 02:06 xakoy

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

It works on me!

BTBMan avatar Jul 09 '24 09:07 BTBMan

Fixed by https://github.com/volarjs/volar.js/pull/226.

johnsoncodehk avatar Jul 19 '24 18:07 johnsoncodehk