microsoft / monaco-editor

A browser based code editor
https://microsoft.github.io/monaco-editor/
MIT License
40.01k stars 3.57k forks source link

[Bug] use side by side mode,delete texts are not high light #4643

Closed dw130 closed 1 month ago

dw130 commented 1 month ago

Reproducible in vscode.dev or in VS Code Desktop?

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

No response

Monaco Editor Playground Code

No response

Reproduction Steps

const editorContainer = monaco.editor.createDiffEditor(ref, { value: "", language: "txt", theme: "customLightTheme", editorOptions: { selectOnLineNumbers: true, roundedSelection: false, }, readOnly: true, diffCodeLens: true, fontFamily: 'Noto Sans Mono CJK SC, monospace', //enableSplitViewResizing: true, renderSideBySide: true, fontSize: 14, scrollbar: { vertical: 'visible', horizontal: 'visible' }, })

1 use renderSideBySide: true

2 new text delete the "test_" charactors image

3 but "test_" foreground color is not high light,color is the same as background

expect color high light

Actual (Problematic) Behavior

No response

Expected Behavior

No response

Additional Context

No response