monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

[Feature Request] Diff Editor Treats All Modified Lines as only "Added" or "Deleted", not "Modified"

Open harlankoehn opened this issue 1 year ago • 0 comments

Context

  • [x] This issue is not a bug report. (please use a different template for reporting a bug)
  • [x] This issue is not a duplicate of an existing issue. (please use the search to find existing issues)

Description

The monaco diff editor doesn't make any distinction between lines which have been modified from the original versus those which are entirely new. This creates an issue where the ability to style in the side-by-side view in order to make it more user-friendly is limited.

Ideally lines which have been modified could have a muted background color with a more prominent background color for the edited chars. Lines which have been added would entirely have a more prominent background color.

An example of how this could look exists on the "truehumandesign.se" website for the software Diffinity.

I modified the 'diffEditor.insertedLineBackground' and 'diffEditor.removedLineBackground' colors to match the background of the editor. This results in "modified lines" looking as I expect but truly added new lines do not have any special background color causing them to blend in visually with unchanged lines.

Monaco Editor Playground Link

No response

Monaco Editor Playground Code

No response

harlankoehn avatar Oct 09 '24 14:10 harlankoehn