Closed ReduxFlakes closed 3 months ago
Let me see what I can do.
@ReduxFlakes what version of VSCode are you using? It seems that July 2024 (version 1.92) release has changed/broken something.
I hate to ask if you could test this to confirm what I am seeing, but download and rollback your VSCode version to the June 2024 release and let me know if the results are the same?
@edheltzel same thing for me and yes, I am currently using the latest version of VS Code.
Edit: Sorry, my issue is color code, they are now the same color. I am using "One Monokai Theme" theme. Tried different theme, still the same result.
If you try downloading vscode v1.91.1 and not update to 1.92 the extension works.
I tested both versions of vscode with better nunjucks v0.2.72 and v.0.2.6
In vscode 1.91.1 both versions of the extension, v0.2.72 & v0.2.6 work as expected.
In vscode 1.92 both are broken
For my Ref: https://github.com/microsoft/vscode/issues/224680 Images for context: (posted in the ref issue ☝️)
v1.91.1 | v1.92 |
---|---|
@edheltzel I am using the latest. I will try rolling back to see, I didn't noticed VS Code had updated since I have the "new release" tab disabled.
@gasatrya yes that's the same issue I have, in my case I'm using Gruvbox and everything turns green, another interesting issue is when I have the char # anywhere, everything after it turns red .
Nunjucks is using an outdated FrontMatter include
The FrontMatter integration should be updated to match Markdowns
https://github.com/microsoft/vscode-markdown-tm-grammar/pull/162
@RedCMD
This is very close... it resolves the syntax highlighting for nunjucks, but breaks the frontmatter syntax highlighting.
I had to dive a little deeper here - Your solutions definitely helped and gets me pointed in the right direction moving forward. I need to do a little more testing but I think we've got a fix THANK YOU 🎉
@edheltzel can confirm that the new 0.3.0 release fixes the issue on the latest version of VS Code, thanks!
Wow, that was fast! @edheltzel and thanks @RedCMD
So when I woke up today to start working on my website I noticed that all of my
.njk
and.md
that had frontmatter (---
) did not have syntax highlighting and snippets did not work.For some reason having a frontmatter breaks the extension. I tried other extensions related to nunjucks but they seem to work fine, I also tried disabling everything but the issue persists.
Yesterday it was working just fine, this just happened today and I don't know what to do, the only thing I did was shutdown my computer.
I have attached screenshots below to show the issue.
Nunjucks file without frontmatter showing that the extensions behaves correctly
Nunjucks file with frontmatter showing that the extensions stops working
The same thing happens with markdown files - in this case without frontmatter and working
and with frontmatter, not working