Skip to content

adding trace logs to trace double paste issue#286158

Merged
aiday-mar merged 2 commits intomainfrom
fortunate-harrier
Jan 6, 2026
Merged

adding trace logs to trace double paste issue#286158
aiday-mar merged 2 commits intomainfrom
fortunate-harrier

Conversation

@aiday-mar
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 6, 2026 14:53
@aiday-mar aiday-mar self-assigned this Jan 6, 2026
@vs-code-engineering vs-code-engineering bot added this to the December 2025 milestone Jan 6, 2026
Tyriar
Tyriar previously approved these changes Jan 6, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds trace logging to help debug a double paste issue in the editor. The logs track the state of PasteOptions.electronBugWorkaroundPasteEventHasFired, a flag used to prevent duplicate paste operations in Electron.

Key Changes

  • Added trace logs at key points where the electronBugWorkaroundPasteEventHasFired flag is accessed or modified
  • Logs placed in three strategic locations: paste handler, trigger paste flow, and paste data computation

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.ts Added trace log in handlePaste method to track when the flag is set to true
src/vs/editor/contrib/clipboard/browser/clipboard.ts Added trace logs before and after triggerPaste to track flag state changes during the paste operation
src/vs/editor/browser/controller/editContext/clipboardUtils.ts Added trace log in computePasteData function to track when the flag is set during clipboard data computation

@aiday-mar aiday-mar merged commit 31de8ea into main Jan 6, 2026
22 checks passed
@aiday-mar aiday-mar deleted the fortunate-harrier branch January 6, 2026 15:48
alexdima added a commit that referenced this pull request Jan 8, 2026
alexdima added a commit that referenced this pull request Jan 8, 2026
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Feb 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants