microsoft / microsoft/monaco-editor

Should be able to select and copy deleted code

Open
#1,035 20 comments 83 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

diff-editor feature-request
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.