intlify / vue-i18n

Vue I18n for Vue 3
https://vue-i18n.intlify.dev/
MIT License
2.21k stars 336 forks source link

After update vs code to 1.93 <i18n lang="yaml"> in SFC breaks code coloring in subsequent sections #1938

Closed FragsterAt closed 2 months ago

FragsterAt commented 2 months ago

Reporting a bug?

After update vs code to 1.93 in SFC breaks code coloring in subsequent sections/ In VS code 1.92.1 all works fine.

Expected behavior

correct code coloring in vs code 1.93.1

Reproduction

Install VS code 1.92.1 or earlier. create SFC with section like in docs: https://vue-i18n.intlify.dev/guide/advanced/sfc.html (minimal is something like that:

<template>
  <div>{{ greeting }}</div>
</template>

<i18n lang="yaml">
  en:
    test: test
</i18n>

<script setup>
import { ref } from 'vue'
const greeting = ref('Hello world!')
</script>

)

everything is fine Upgrade VS code to 1.93 code coloring broken

System Info

vs code:

Version: 1.93.0 (system setup)
Commit: 4849ca9bdf9666755eb463db297b69e5385090e3
Date: 2024-09-04T13:02:38.431Z
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.14393

Screenshot

изображение

Additional context

No response

Validations

kazupon commented 2 months ago

Thank you for your reporting!

I think your issue is vscode or vscode extension issue vue-i18n does not provide or touch anything against syntax hightlight in custom blocks. Please open an issue against vscode extensions.

Thanks!