Skip to content

Trim comments in diff copy code#120

Open
Zeus-Deus wants to merge 2 commits into
Emanuele-web04:mainfrom
Zeus-Deus:fix/diff-copy-followup-cleanup
Open

Trim comments in diff copy code#120
Zeus-Deus wants to merge 2 commits into
Emanuele-web04:mainfrom
Zeus-Deus:fix/diff-copy-followup-cleanup

Conversation

@Zeus-Deus
Copy link
Copy Markdown

Follow-up to #116.

Cleans up the explanatory comments from that PR — one short line per function instead of the longer blocks, to match how the rest of these files are written. No behavior change, comments only.

Zeus-Deus added 2 commits May 14, 2026 16:17
The diff viewer is virtualized, so selecting all and copying only put the
handful of rendered rows on the clipboard instead of the full file.

Serialize the whole diff from the parsed model and intercept the copy
event at the document level (the diff renders into shadow DOM, so the
copy event never reaches the viewport element). Cmd/Ctrl+A inside the
viewport arms the gesture; the next copy then writes the complete diff.
The existing Copy button now uses the same serialized text.
Cut the explanatory comments down to one line per function to match the
rest of these files. Follow-up to the select-all copy fix review.
@github-actions github-actions Bot added size:L vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant