View PatchReview
The Patch Reviews panel in the Explorer keeps the repository, base, file list, and review checklist alongside the diff. The extension stays read-only and offline. Open a patch
Selecting several files with the ordinary command opens independent reviews. To apply dependent patches in order, use the series command below. Review complete filesA patch normally contains only edited lines and their surrounding context. For a complete-file review, View Patch applies it in a private scratch area and reads each file before and after the change. The extension searches:
When a An open workspace folder is not required: in an empty window, the patch file's folder and Use Open Patch as Changes on a Repository and Base..., or Change Repository and Base... on a review, to choose a repository and revision yourself. Review hunks without a repositoryRun View Patch: View Patch Hunks Only, or choose View Hunks Only when a complete-file review cannot apply. This mode needs neither Git nor workspace trust. For an open patch review, right-click its name in Patch Reviews and choose Show Hunks Only for Review or Show Complete Files for Review. These actions reuse that review's original source, not a different patch in the active editor. They retain its repository and base choice while it stays open. While the patch itself is unchanged, files listed in both views keep their reviewed marks; if the patch changed, its marks are cleared. Each review's menu offers only the switch that applies, and VS Code for the Web offers no complete files. Commit and version-comparison reviews cannot switch modes. Complete files still need Git, a matching repository, and workspace trust; a failed switch keeps the existing view. The title, summary, and document headers explicitly say partial context. Only lines actually present in the patch are shown, with original line ranges and omitted-context separators. Missing file contents are never invented. Binary payloads are not reconstructed; only their supplied metadata is shown. This is an explicit choice, not a silent fallback from a failed complete-file review. Review a patch series
Each patch is applied to the preceding patch's result in one private scratch area. Patch Reviews offers the combined result and each individual patch, including subjects and authors. Cover letters are not applied as changes. If the combined result has no net changes, the individual patches remain reviewable. A hunk-only series shows individual messages, not a fabricated complete-file or cumulative reconstruction. Compare two patch versionsWith a complete-file review open, Compare with Another Patch... applies the current patch and a second file to the same frozen base, then opens the result difference: the first version's outcome on the left, the second version's on the right. This is how a v2 of a change differs from its v1, not a textual diff of the two patch files. Identical outcomes are reported without opening an empty review. A comparison cannot be refreshed or rebased; run the command again. Merge commitsA combined merge diff ( Mailed patchesMessage bodies encoded as Summary, checklist, and refreshExpand Patch Reviews in the Explorer, or run View Patch: Show Patch Reviews.
Expand Review Details for the selected patch's subject, author, date, snapshot identifier, and detailed counts.
The panel divider can be dragged upward to give a large checklist more room.
The view's title shows the loaded extension version and where it runs, for example
Refresh keeps the selected repository and base expression. Checkmarks survive only for changes whose contents and metadata are unchanged. Series navigation replaces the review's current Changes tab rather than opening a tab per message. Regenerating the source patch outside the editor offers the same refresh as saving it in the editor; the open snapshot is never silently replaced. Reviews are also remembered across reloads: reopening an unchanged patch restores its reviewed checkmarks and retries the previously chosen repository and base first, and Reopen Recent Patch... lists recent reviews, including series. The remembered list stays on this machine. Unsaved clipboard, pasted, and sample patches are not added to recent history; save the patch first to reopen it later. Read-only, bounded operationYour repository's working tree, index, references, and objects are not modified. Git uses a private index and object database, and object-writing commands cannot access the source alternates. Scratch data is removed on success, failure, cancellation, and limits. Missing objects are not fetched from a remote. Both sides are then served as read-only, in-memory documents. There is no arbitrary twenty-review eviction: content remains available while its Changes tab or individual file diff is open. Closing the last owned tab releases the extension's buffers. Binary and undecodable files show their sizes and content fingerprints, so equal-size binary changes cannot look identical merely because their lengths match. Text with recognized byte-order marks is decoded explicitly. Loading progress has a Cancel button. Default limits use mebibytes (MiB), where one MiB is 1,048,576 bytes:
Limits fail explicitly; they do not truncate content or evict another open review. Close reviews or adjust the appropriate setting before retrying. The retained-content limit counts file buffers, not VS Code's own text models or all JavaScript object overhead. The output limit includes both standard output and standard error. Set these options in user or remote settings, not workspace settings. Requirements and limits
Privacy and troubleshootingView Patch does not collect telemetry, contact a hosting service, or fetch missing objects.
View Patch: Show View Patch Output, also in the Patch Reviews view's ... menu, opens the View Patch output
channel directly, rather than the editor's unrelated Window log.
It explains repository selection, cancellation, limits, and Git failures.
For a bug report, View Patch: Report a Problem... (also in the Patch Reviews view's ... menu and on View
Patch error messages) opens a preview of the version, editor, platform, and Git details. Only if you confirm does it
copy that text and open the GitHub issue form in your browser; nothing is sent for you. The report leaves out patch
content, clipboard content, repository paths, Git arguments, and the output log, and shows your home folder as Common first-run errors
License |
