-
-
Notifications
You must be signed in to change notification settings - Fork 452
YAML Syntax Highlighting #4654
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
Comments
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 microsoft/vscode#219833 you will need to update your embedding before VSCode re-adds the new YAML grammar again something like this will work: "patterns": [
{
"begin": "\\G(?![^<]*+<)",
"while": "^(?![^<]*+<)",
"patterns": [ { "include": "source.yaml" } ]
},
{
"match": "[^<]++",
"captures": { "0": { "patterns": [ { "include": "source.yaml" } ] } }
}
] language-tools/extensions/vscode/syntaxes/vue.tmLanguage.json Lines 570 to 601 in d24c984
it'll also fix old bugs with the embedded language breaking out <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> related: microsoft/vscode#224862 |
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 #4654 (comment) |
VSCode is looking at re-adding the new YAML grammar again in the upcoming Sep 4th release |
This is now an issue again 😄 |
Uh oh!
There was an error while loading. Please reload this page.
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 #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 #4654 (comment)
The text was updated successfully, but these errors were encountered: