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

新版vscode导致less deep语法解析奔溃

Open meesii opened this issue 4 months ago • 8 comments

image

image

如上图style标签直接解析奔溃了,如果注释掉deep这行就正常了。

上图为最新版vscode v1.87,包括vscode.dev在线版本也是一样。 降级到v1.85就显示正常了,如下图。 Vue Language Features (Volar) vv1.8.27

image

meesii avatar Feb 29 '24 13:02 meesii

具体说是从vscode v1.86 开始的,v1.85就没有这个问题。 虽然表面上只是语法解析失败了,但是保存文件的时候会跳动,默认展开了所有代码。

meesii avatar Mar 01 '24 09:03 meesii

@so1ve 麻烦帮忙看一下,在线的 https://vscode.dev/ 直接就可以复现问题。

meesii avatar Mar 01 '24 10:03 meesii

What kind of crash?

so1ve avatar Mar 01 '24 11:03 so1ve

What kind of crash?

Please look at the tag in the first picture. The color is abnormal.

meesii avatar Mar 01 '24 11:03 meesii

Once this problem occurs, when I save the file, vscode will automatically expand all codes, causing my cursor position to change.

meesii avatar Mar 01 '24 11:03 meesii

Could you please explain expand?

so1ve avatar Mar 01 '24 11:03 so1ve

If I'm currently editing line 10 of code, the cursor may appear on any line when I save. Because vscode expanded all my folded code.

meesii avatar Mar 01 '24 11:03 meesii

Have the same problem. Deep grammar color highlight error. It will influence all below it. When i write style tag at top use :deep() function, all my code highlight error.

Right highlight

image

Error highlight

image

Sunxinqiang avatar Apr 10 '24 11:04 Sunxinqiang