Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
EsunR opened this issue May 29, 2024 · 8 comments
Closed

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

EsunR opened this issue May 29, 2024 · 8 comments
Labels
bug Something isn't working upstream

Comments

@EsunR
Copy link

EsunR commented May 29, 2024

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
Copy link

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

@davidmatter
Copy link
Collaborator

@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
Copy link
Collaborator

davidmatter commented Jun 4, 2024

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
Copy link
Collaborator

@davidmatter
Copy link
Collaborator

Created bug report @ vscode - I think they should be aware of the effects of the new default microsoft/vscode#214226

@xakoy
Copy link

xakoy commented Jun 14, 2024

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.

@BTBMan
Copy link

BTBMan commented Jul 9, 2024

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!

@johnsoncodehk
Copy link
Member

Fixed by volarjs/volar.js#226.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

6 participants