Open maxwellsmart84 opened 8 months ago
the same problem as you just install the old version
@YcZzy old version of VSCode or Volar?
Downgrade to 2.6 did fix it for me.
This is not a bug, it's just semantic highlighting working properly. You can remove it in the settings
This is not semantic highlighting working properly; it doesn't recognize components at all. have to revert to 1.8.27 to fix it. Big problem, because it doesn't know what props my components need, makes breaking things inevitable.
I've noticed that my highlight broke after I run code formatting. After formatting my script section becomes like this
<script
setup
lang='ts'
>
This is annoying behavior which I also got after update. i suppose it may cause such problem
The highlighting isn't completely broken for me using Dark Modern theme, but it does blink in and out sometimes as I scroll. Specifically, I've seen that if I start to scroll past about 50 lines of <template>
code, the highlighting breaks.
切换折叠、滚动条滚动等情况下,组件高亮会闪烁
@johnsoncodehk Is it possible to refer to #2252 to fix it?
@XioDone No, with TS plugin it can't use "component" semantic token type.
I've been annoyed with this for a minute but while I was messing around I noticed highlighting changing as I changed the lang attribute.
js
doesn't seem to be the lang that you would want there however. Also interesting is that in both scenarios the built-in TransitionGroup
component is highlighted as expected.
No, with TS plugin it can't use "component" semantic token type.
@johnsoncodehk Does this mean custom components should have the same highlight color as normal html tags?
I've been annoyed with this for a minute but while I was messing around I noticed highlighting changing as I changed the lang attribute.
@DocMcCoy interesting, adding lang="js
to my template tag does correct the highlighting but causes eslint to throw errors in my <script>
section.
@amfischer Internally components are converted to functions. So they should have the same color as functions
Faced this issue. Rather annoying for me. @amfischer Same here. Adding lang="js" to my template fixes the issue but eslint starts to throw errors.
^^ Using Monokai, all Vue components are now green making it very difficult to read.