Skip to content

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

Merged
riknoll merged 1 commit into
masterfrom
dev/riknoll/fix-diff-render
Jul 23, 2026
Merged

fix rendering of diffs for files that exceed our max diff size#11497
riknoll merged 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
@riknoll
riknoll added this pull request to the merge queue Jul 23, 2026
Merged via the queue into master with commit ea81f93 Jul 23, 2026
20 checks passed
@riknoll
riknoll deleted the dev/riknoll/fix-diff-render branch July 23, 2026 17:20
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