Skip to content

Conversation

@tnaum-ms
Copy link
Collaborator

Fix: Downgrade Monaco Editor to 0.52.2 to restore keyboard paste functionality

Problem:
Users reported that keyboard paste (Ctrl+V / Cmd+V) stopped working in all Monaco editors (Query Editor, Document View). Copy still worked, and context menu paste worked, but keyboard shortcuts failed silently.

Root Cause:
Monaco Editor 0.53.x/0.54.x introduced a regression affecting keyboard paste in webview environments. The same issue was reported and fixed in vscode-cosmosdb (#2843).

Solution:
Downgraded monaco-editor from ~0.54.0 to ~0.52.2, following the same fix applied in vscode-cosmosdb#2847.

Closes #435

Follow-up:
Issue #469 tracks upgrading to Monaco 0.56.0 once released, which should include fixes for clipboard issues.


  • Dependency management:
    • Downgraded monaco-editor from version ~0.54.0 to ~0.52.2 in package.json.

Copilot AI review requested due to automatic review settings January 28, 2026 14:07
@tnaum-ms tnaum-ms requested a review from a team as a code owner January 28, 2026 14:07
@tnaum-ms tnaum-ms linked an issue Jan 28, 2026 that may be closed by this pull request
@tnaum-ms tnaum-ms added this to the 0.7.0 - January 2025 milestone Jan 28, 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 downgrades Monaco Editor from version 0.54.0 to 0.52.2 to fix a regression where keyboard paste (Ctrl+V / Cmd+V) stopped working in all Monaco editors within the extension. The issue was identified and resolved using the same approach taken in the vscode-cosmosdb project, where downgrading to 0.52.2 successfully restored paste functionality.

Changes:

  • Downgraded monaco-editor dependency from ~0.54.0 to ~0.52.2 to restore keyboard paste functionality
  • Updated package-lock.json to reflect the version change and removal of transitive dependencies (dompurify and marked) that were introduced in Monaco 0.54.0

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
package.json Downgraded monaco-editor from ~0.54.0 to ~0.52.2 to fix keyboard paste regression
package-lock.json Updated lock file with new monaco-editor version and removed dompurify/marked dependencies that were only needed by Monaco 0.54.0

@tnaum-ms tnaum-ms changed the title fix: copy and paste issue in query editors fix: Downgrade Monaco Editor to 0.52.2 to restore keyboard paste functionality Jan 28, 2026
@tnaum-ms tnaum-ms changed the title fix: Downgrade Monaco Editor to 0.52.2 to restore keyboard paste functionality fix: Restore keyboard paste functionality, Downgrade Monaco Editor to 0.52.2 Jan 28, 2026
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.

Collection View: Unable to paste queries

2 participants