-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Embedded languages syntax highlighting stopped working in 1.92.0 #224978
Comments
Possibly fixed by #224954 |
Installing this extension https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml helps as a workaround. I guess because it takes over the yaml grammar and completes it with what is expected by other extensions. |
if I remove the but it will still break down when inside a nested block-map |
@alexr00 VSCode needs to pull the latest yaml commits to fix this sorry, I was under the impression the changes had already gone through |
Re-using the old candidate here as this is a separate issue: #224862 |
separate issue? @harrydowning has already pushed a temporary patch to his extension in the meantime harrydowning/vscode-yaml-embedded-languages#45 |
I'm the author of the Extended Embedded Language plugin mentioned above. Thank you @RedCMD for the suggestions and patches you've given. I'm seeing a problem now on VSCode 1.93.0 using YAML as an embedded language - e.g. putting yaml inside Python or C++. The issue seems to be the similar to #20488 which I've come across in some other embedded grammars where the embedded grammar captures the end-of-string token before the host can see it, so the embedded language highlighting "leaks" out of its string. In the past I've had to remove potential embedded languages because of this, but YAML is too useful to just remove so I wanted to see if there was a workaround? ![]() |
Awesome, I'll try adopting https://github.com/RedCMD/YAML-Syntax-Highlighter again for the November milestone. |
@RedCMD I'm still seeing the original bug: |
@alexr00 that is highlighted correctly |
if you think it is an issue as #224862 has been fixed by me and by the mdx extension |
Thanks @RedCMD, I forgot to install the MDX extension 🤦♀️ I've gone through the issues, and they all no longer repro with your changes 🚀 |
This bug has been fixed in the latest release of VS Code Insiders! @staspiter, you can help us out by commenting If things still don't seem right, please ensure you're on version a1fc8c1 of Insiders (today's or later - you can use Happy Coding! |
Does this issue occur when all extensions are disabled?: Yes
I have been using the following two extensions a lot. Since 1.92.0 update both extensions stopped working meaning the embedded code in JS does not get highlighted inside of YAML anymore. Each extension basically does the same job for me, so I tried to switch from one to another before realizing that my VSCode got an update and this functionality stopped working in both extensions. I've also tried the insiders build and the problem is still there. When I downgraded to 1.91.1, the extensions worked perfectly. This happens on both Windows and Mac.
The extensions are:
Steps to reproduce:
This is how it looks like in 1.92.0

1.91.1:

The text was updated successfully, but these errors were encountered: