Skip to content

hotfix: apply newFile lang override to FileDiffMetadata when parseDif…#458

Merged
amadeus merged 2 commits intomainfrom
diff-lang-fix
Mar 30, 2026
Merged

hotfix: apply newFile lang override to FileDiffMetadata when parseDif…#458
amadeus merged 2 commits intomainfrom
diff-lang-fix

Conversation

@amadeus
Copy link
Copy Markdown
Member

@amadeus amadeus commented Mar 30, 2026

workaround/fix for #450

@amadeus amadeus requested a review from Copilot March 30, 2026 22:59
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pierrejs-diff-demo Ready Ready Preview Mar 30, 2026 11:09pm
pierrejs-docs Ready Ready Preview Mar 30, 2026 11:09pm

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Hotfix to address issue #450 where providing FileContents.lang for <MultiFileDiff> did not affect syntax highlighting, by propagating the language override onto the produced FileDiffMetadata.

Changes:

  • Propagate newFile.lang into the FileDiffMetadata.lang returned by parseDiffFromFile.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/diffs/src/utils/parseDiffFromFile.ts Outdated
Comment thread packages/diffs/src/utils/parseDiffFromFile.ts Outdated
Comment thread packages/diffs/src/utils/parseDiffFromFile.ts Outdated
Comment thread packages/diffs/src/utils/parseDiffFromFile.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants