[Bug] Context Menu "Paste" does nothing

Author: FlorianPoesslCreated Jul 1, 2026Updated Aug 25, 2026

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