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
contains template #default Syntax coloring #761
Comments
please offer a minimum reproduce code snippet instead a screenshot |
<template>
<div class="settings-main card">
<a-input title="标题" >
<template #default={row}>
</template>
</a-input>
</div>
</template> minimum reproduce snippet |
So you can reproduce it
<template>
<div class="settings-main card">
<a-input title="标题" >
<template #default={row}>
</template>
</a-input>
<a-input title="标题" >
<template #default={row}>
</template>
</a-input>
<a-input title="标题" >
<template #default={row}>
</template>
</a-input>
</div>
</template> |
<template>
<div class="settings-main card">
<a-input title="标题" >
<template #default="{row}">
</template>
</a-input>
<a-input title="标题" >
<template #default="{row}">
</template>
</a-input>
<a-input title="标题" >
<template #default="{row}">
</template>
</a-input>
</div>
</template> |
i wrote a sematic token extension MVP here https://github.com/IWANABETHATGUY/volar-semantic-token-demo, |
@johnsoncodehk any thought about this ? |
This is a tmLanguage issue, and may not be suitable to be solved by semitic token, because vscode relies on tmLanguage to parse embedded language. This will affect the language configuration of autoClosingPairs, wordPattern, code snippet... in interpolation. It should modify here to resolve. html tmLanguage has resolved it already and I will refer to. |
Yes, even though I rewrote vue tmLanguage, I still don't fully understand how it works. :S
It will not be so fast in real world, because the semantic token will be implemented based on the LSP request. All LSP performance problems will affect the semantic token. For example, the request blocking problem caused by the long diagnosis time, the user may see that the semantic token is updated only after the diagnosis is updated. |
need to test on real project and open this feature on demand, so i don't think this would be a big problem |
IIRC, vscode will fallback to regex based highlight when semantic token is hanging. We could also add a switch to control it , |
contains template #default Syntax coloring
The text was updated successfully, but these errors were encountered: