Open robertmoura opened 3 months ago
Cannot reproduce this in Vue Playground:
Please disable all other plugins and see if this still happens
Seems like this is working for me this morning 😄 Not sure why that was happening. There may be an issue but it might be an edge case that I wouldn't know how to reproduce. Closing this one.
Thanks for trying that out in the playground @KermanX.
caused by https://github.com/microsoft/vscode/pull/219833
you will need to update your embedding before VSCode re-adds the new YAML grammar again
something like this will work:
it uses while
instead of begin
/end
"patterns": [
{
"begin": "\\G(?![^<]*+<)",
"while": "^(?![^<]*+<)",
"patterns": [ { "include": "source.yaml" } ]
},
{
"match": "[^<]++",
"captures": { "0": { "patterns": [ { "include": "source.yaml" } ] } }
}
]
it'll also fix old bugs with the embedded language breaking out (unclosed strings/brackets etc)
old: fixed:
<route lang="yaml">
abc: 5
</route>
<route lang="yaml">abc: 5
abc: 5
</route>
<route lang="yaml">abc: 5
abc: 5
abc: 5</route>
<route lang="yaml">
abc: 5</route>
<route lang="yaml">abc: 5</route>
Based on what @RedCMD mentioned above there might be more work to do here for a future VSCode release. Reopening so that this can be looked into. See https://github.com/vuejs/language-tools/issues/4654#issuecomment-2299996265
VSCode is looking at re-adding the new YAML grammar again in the upcoming Sep 4th release https://github.com/microsoft/vscode/issues/180523#issuecomment-2310855104
This is now an issue again 😄
Vue - Official extension or vue-tsc version
2.0.28
VSCode version
1.92.0
Vue version
3.4.35
TypeScript version
5.5.4
System Info
Steps to reproduce
Put the following into a single file component:
What is expected?
The YAML code is highlighted without affecting the template highlighting.
What is actually happening?
The route block seems to be breaking the highlighting of the rest of the single file component.
It only seems to be a problem with YAML. Here's an example with JSON:
Link to minimal reproduction
No response
Any additional comments?
This issue may be related to https://github.com/vuejs/language-tools/issues/2060. Although I think this may be something else because it used to work but seems to have broken for me recently. Changing the Vue Extension versions doesn't seem to fix the issue either so I wonder whether it might be something else?
UPDATES 21 August 2024
See https://github.com/vuejs/language-tools/issues/4654#issuecomment-2299996265