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

Intellisense cannot detect close tag of <script setup> #1982

Closed
neko-para opened this issue Oct 11, 2022 · 5 comments
Closed

Intellisense cannot detect close tag of <script setup> #1982

neko-para opened this issue Oct 11, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@neko-para
Copy link

image

image

The project is generated by vite without any changes. It seems that volar treats codes after line 4 as javascript and cannot perceive the close tag </script> on line 5.

@neko-para
Copy link
Author

This problem can be solved by removing all the comment. But after this process adding comment back doesn't make it break now.

@johnsoncodehk
Copy link
Member

Could you paste the code in text?

@neko-para
Copy link
Author

neko-para commented Oct 12, 2022

test.zip

I've recreated a project, and this problem has appeared again.

steps:

  • npm create vite@latest
  • project name: test
  • framework: vue
  • variant: javascript

@neko-para
Copy link
Author

Env info:

Windows 10 Home 20H2 19042.2006
Nodejs v16.17.1
NPM 8.15.0
VSCode

版本: 1.72.0 (user setup)
提交: 64bbfbf67ada9953918d72e1df2f4d8e537d340e
日期: 2022-10-04T23:20:39.912Z (1 周前)
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.19042
沙盒化: No

@chrisgower
Copy link

I was having a similar issue - I think it's related to the open tag in the comment (<script setup>).
Removing the tag, or adding in a closing tag in a comment, will cause Volar to act properly.

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants