microsoft / microsoft/monaco-editor
Bug: some actions are missing, including cut/copy/paste/undo/redo/etc.
Nobody has claimed this yet.
- 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:
editor.getAction('editor.action.clipboardCutAction')is undefined- cannot find
copyin command palette copyin context menu does not have a keyboard binding to be displayed
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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