Repository navigation
Show the rendered description for REST-listed PRs in the overview - #9152
Draft
Alex Ross (alexr00) with Copilot wants to merge 3 commits into
Draft
Alex Ross (alexr00) with Copilot wants to merge 3 commits into
Alex Ross (alexr00) with Copilot wants to merge 3 commits into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix blank Dependabot PR description in VS Code extension
Show the rendered description for REST-listed PRs in the overview
Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A PR opened from the "All Open" category showed its description as an empty card. That category is often the only place grouped Dependabot PRs appear. Since #8919, the overview renders the model it is given without fetching it again. Models listed through REST
pulls.listhavebodyHTMLundefined, andCommentBodyrenderedbodyHTML ?? ''as HTML.Changes
Extension host: load the rendered description after the page is shown (
pullRequestOverview.ts)pr.initialize, if the model has abodybut nobodyHTML, the newloadDescriptionloads the PR through GraphQL (getPullRequest(..., 'overview')).pr.updatewith{ body, bodyHTML }, processed byprocessLinksInBodyHtmllike the initial render._updateSequence), the same check stack loading uses.getPullRequestupdates the cached model shared with the tree, so other views get the rendered description too.Webview: show text instead of an empty body (
comment.tsx)bodyHTML === undefined(not loaded): renderbodyas plain React text in apre-wrapdiv, so it is not interpreted as HTML.bodyHTML === ''(GitHub rendered nothing, e.g. a body that is only an HTML comment template): render empty, as before.CommentPreviewhad its own copy of this fallback; it now callsCommentBody, so the preview and the full view render the same markup.Notes for review
mergeable, which REST leaves unknown, so the panel reloads the stack and branch status once more. No refresh loop:bodyHTMLis defined afterwards.stubPanelServicesinpullRequestOverview.test.tsnow stubsrepo.getPullRequest, keeping its rule thatrepo.queryis never called. Two existing tests that stubbedgetPullRequestthemselves now override the shared stub.