Skip to content

fix rendering of diffs for files that exceed our max diff size#11497

Open
riknoll wants to merge 1 commit into
masterfrom
dev/riknoll/fix-diff-render
Open

fix rendering of diffs for files that exceed our max diff size#11497
riknoll wants to merge 1 commit into
masterfrom
dev/riknoll/fix-diff-render

Conversation

@riknoll

@riknoll riknoll commented Jul 23, 2026

Copy link
Copy Markdown
Member

reported on the forum here:

https://forum.makecode.com/t/help-github-project-opens-to-a-white-screen-but-the-extension-imports-correctly/45031/3

if a diff in a github repo is bigger than our maximum allowed diff size, computeFormattedDiff() will throw an exception since compute() returns null

the places where computeFormattedDiff() is called all had handling for if it returns null/undefined, so clearly i must have broken this at some point in all the version history refactors. this PR fixes it by making sure we propagate any null return values up

@riknoll
riknoll requested a review from a team July 23, 2026 00:06
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.

1 participant