microsoft / microsoft/vscode

Rendered Markdown diff on YAML frontmatter: edited field shows no diff, unchanged heading marked as changed

Open
#332,144 0 comments 0 reactions 1 assignee Claimed by @hediet View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Does this issue occur when all extensions are disabled?: Yes

- VS Code Version: 1.134.0 (110a328ea54b42367b803ec53ee0bf52ef26b419, arm64)
- OS Version: macOS 26.5 (Darwin 25.5.0), arm64

Steps to Reproduce:

1. Commit a Markdown file that starts with a YAML frontmatter block (`--- name: ... description: ... ---`).
2. Edit the frontmatter's description field.
3. Open the file from the Source Control view.
4. Run **Reopen Editor With…** and choose **Markdown Preview**.

## Actual

The frontmatter renders as a table. The edited cell shows no diff indication at all — the old and new sides look identical, no highlighting, no color — even though the text is different.

Right below, the first heading — same text on both sides — gets a full colored background as if it had changed: dark red on the old side, dark green on the new side.

So the one thing that did change is shown as unchanged, and the one thing that didn't change is shown as changed.

Image

Image

## Expected

The frontmatter table cell highlights the actual change, the same way changes are highlighted outside a table. Unchanged headings keep no diff background.

## Related

#332119 looks related — same area (rendered Markdown diff), also broken on tables.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.