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

高亮错误 #1625

Closed
2A5F opened this issue Jul 23, 2022 · 6 comments
Closed

高亮错误 #1625

2A5F opened this issue Jul 23, 2022 · 6 comments

Comments

@2A5F
Copy link

2A5F commented Jul 23, 2022

typescript的一些语法高亮错误

以前还只有 tsx 有问题,现在更新的 ts 都有问题了

mmexport1658556761344.pngmmexport1658556756912.png

主要就是尾随 ! 和 as 有问题

@johnsoncodehk
Copy link
Member

I can't reproduce this problem, please provide minimal reproduction, and nice to add the case into https://github.com/johnsoncodehk/volar/tree/master/packages/vue-test-workspace/syntax if it not have.

螢幕截圖 2022-07-23 19 54 52

@2A5F
Copy link
Author

2A5F commented Jul 23, 2022

image
@johnsoncodehk

@johnsoncodehk
Copy link
Member

If you have already update to latest volar version, please check your other extensions it may provide conflicting typescript syntax token.

@2A5F
Copy link
Author

2A5F commented Jul 23, 2022

image
试出来了

@fanzihui
Copy link

@2A5F Then how do you solve it, after all, you also have to use windicss.

@2A5F
Copy link
Author

2A5F commented Aug 22, 2022

@fanzihui endure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants