microsoft / microsoft/monaco-editor
Should be able to select and copy deleted code
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
When viewing a diff, it is often useful to be able to select and copy portions of recently deleted code.
This is allowed in split view and I'm hoping it being disabled in inline view is a simple bug. If it was intended, then we should have an option to enable it.
monaco-editor version: 0.14.3
Browser: Any
OS: Any
Example: https://microsoft.github.io/monaco-editor/playground.html#creating-the-diffeditor-inline-diff-example
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 inline diff example in the linked Monaco Editor playground and compare text selection and copying with split view. Trace the inline diff behavior from that example; done means deleted code can be selected and copied in inline view, or an option is available if the behavior is intentional.
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
- 48/100