Skip to content

fix(clipboard): share webview message handler and stabilize VRT layout - #113

Merged
phine-apps merged 1 commit into
mainfrom
fix/clipboard-diff-webview-messages
Nov 25, 2026
Merged

phine-apps merged 1 commit into
mainfrom
fix/clipboard-diff-webview-messages

Conversation

@phine-apps

Copy link
Copy Markdown
Owner

Summary

  • Extract attachDiffWebviewMessageHandler in src/extension.ts and share it between bindDiffPanel and rich-markdown-diff.diffClipboard, removing duplicated openSource / wikilink logic and enabling Quick Edit (requestBlockSource / applyEdit), searchTag, ready, and runtimeDiagnostics in Clipboard Diff mode.
  • Add an integration test in src/test/suite/webviewBridge.test.ts covering attachDiffWebviewMessageHandler for requestBlockSource and applyEdit.
  • Wait for document.fonts.ready and consecutive stable requestAnimationFrame layout dimensions in src/test/visual/vrt.test.ts before taking fullPage screenshots to prevent 1px height oscillation.

Verification

  • pnpm run compile && pnpm run lint && npx mocha ./out/test/unit/**/*.test.js (315 passing)
  • Docker Playwright: src/test/visual/vrt.test.ts -g 'comprehensive-v1-v2' passed (1 passed)

@phine-apps
phine-apps merged commit 64dd2bb into main Nov 25, 2026
3 checks passed
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