microsoft / microsoft/monaco-editor

Bug: some actions are missing, including cut/copy/paste/undo/redo/etc.

Open
#2,598 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

editor-core feature-request
Dominant language
JavaScript
Stars
46.8k
Forks
4.1k
Avg merge
17h 58m
Merged PRs (30d)
1

Description

monaco-editor version: 0.26.1
Browser: chrome 92.0
OS: windows
Playground code that reproduces the issue:

 monaco.editor.create(document.getElementById("container"), {
	value: "function hello() {\n\talert('Hello world!');\n}",
	language: "javascript"
});

This bug is reported in #2195. The author created a workaround for it but it still hasn't got solved till 0.26.1.

Some evidence that actions are missing:

  1. editor.getAction('editor.action.clipboardCutAction') is undefined
  2. cannot find copy in command palette
  3. copy in context menu does not have a keyboard binding to be displayed

Contributor guide

Open the contributing guide

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.

Research direction

Start with the provided Monaco Playground configuration and reproduce the missing actions in Chrome on Windows. Inspect how cut, copy, paste, undo, and redo are exposed through getAction, the command palette, and the context menu; done means these actions are available and their keyboard bindings are displayed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.