[Bug] Context Menu "Paste" does nothing

Open
#5,383 9 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@alexdima is already working on this.

Since Jul 1, 2026.

Assessment

This issue has not been assessed yet.

Description

Reproducible in vscode.dev or in VS Code Desktop?
  • Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
Monaco Editor Playground Link

https://microsoft.github.io/monaco-editor/playground.html?source=v0.55.1#XQAAAAJfAQAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscwzYWtRgmSaumWUF-TBOsVJ4S4FwfCDQb5-2uUHXTVAefbVSd9IzaZ_vv9VR9KugsKimARHSWlrTPOQHROITHxmBXbZidJKUZVPNcKNKvOmQIhhGgnYTPiexitdL1MC0smZTMpWHwZiuQHwjSfCMiY9ICszR6LdsyBybtrHr8jxwAF_YXlc_DMIp26pSILPNAxSmTyyCLg1h5Y7eGnf_B9VeiDqy7xM8Rw_41b7-hPQHqr6Tc15QzJuXirBhtCdjLRlXjfucKIDrUA8kZWl9xe0KgtN8x7MT7B1I_jrp8J_5iTyQA

Monaco Editor Playground Code
const value = /* set from `myEditor.getModel()`: */ `function hello() {
    console.log('Hello')
}`;

// Hover on each property to see its docs!
const myEditor = monaco.editor.create(document.getElementById("container"), {
	value,
	language: "javascript",
	automaticLayout: true,
});
Reproduction Steps
  1. Select some code and copy it
  2. Right click to open context menu
  3. Click 'Paste'
Actual (Problematic) Behavior

Nothing happens after 'Paste' is pressed

Expected Behavior

The copied code should be inserted

Additional Context

No response

Dominant language
JavaScript
Stars
47k
Forks
4.2k
Avg merge
3d 13h
Merged PRs (30d)
13

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/monaco-editor

All issues in microsoft/monaco-editor

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.