mdx-js / mdx-analyzer

MDX extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=unifiedjs.vscode-mdx
MIT License
338 stars 21 forks source link

Syntax Highlighting Breaks with Frontmatter #462

Closed Lakuna closed 2 months ago

Lakuna commented 2 months ago

Initial checklist

Affected packages and versions

MDX v1.8.9

Link to runnable example

No response

Steps to reproduce

As of today (potentially related to the new Visual Studio Code update 1.92, which came out yesterday), MDX files with frontmatter don't display proper syntax highlighting.

  1. Create a file and use MDX syntax highlighting.
  2. Add frontmatter to the file.
  3. Write standard MDX content below the frontmatter.

I am using Node.js version 22.3.0.

Expected behavior

The standard syntax highlighting should appear (this was the case for me until today).

image

Actual behavior

The entire file is highlighted as if it were YAML.

image

Runtime

Other (please specify in steps to reproduce)

Package manager

npm v10

OS

Windows

Build and bundle tools

Next.js

remcohaszing commented 2 months ago

Duplicate of https://github.com/wooorm/markdown-tm-language/issues/10

github-actions[bot] commented 2 months ago

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.

github-actions[bot] commented 2 months ago

Hi team! Could you describe why this has been marked as external?

Thanks, — bb

remcohaszing commented 2 months ago

But it is interesting to know this was caused by VSCode 1.92.