Skip to content

Conversation

planger
Copy link
Contributor

@planger planger commented Mar 18, 2025

What it does

It looks like the Monaco-specific paste handler is not enabled for editors that are not tracked in the CodeEditorService (see packages/monaco/src/browser/monaco-command.ts). Therefore, we register a specific paste handler for the AI chat input editor.

Fixes #15054

How to test

Use copy and paste via the context menu in the AI chat input in all possible combinations.

Follow-ups

None

Breaking changes

  • This PR introduces breaking changes and requires careful review. If yes, the breaking changes section in the changelog has been updated.

Attribution

Review checklist

Reminder for reviewers

It looks like the Monaco-specific paste handler is not enabled for editors that are not tracked in the CodeEditorService (see packages/monaco/src/browser/monaco-command.ts). Therefore, we register a specific paste handler for the AI chat input editor.

Fixes #15054
@planger planger requested a review from sdirix March 18, 2025 13:22
@github-project-automation github-project-automation bot moved this to Waiting on reviewers in PR Backlog Mar 18, 2025
@planger planger changed the title Planger/issues/15054 fix(chat): fix context menu paste Mar 18, 2025
Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

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

Works for me. Thanks!

@github-project-automation github-project-automation bot moved this from Waiting on reviewers to Needs merge in PR Backlog Mar 18, 2025
@planger planger merged commit 676ce13 into master Mar 18, 2025
10 of 11 checks passed
@github-project-automation github-project-automation bot moved this from Needs merge to Done in PR Backlog Mar 18, 2025
@github-actions github-actions bot added this to the 1.60.0 milestone Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Theia AI] Paste does not work in the right-click menu of chat input
2 participants