mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
feat(diff-editor): enhance diff editor configuration with legacy algorithm and improved options
This commit is contained in:
@@ -321,7 +321,14 @@ async function updateEditor () {
|
||||
}
|
||||
|
||||
if (isDiffEditor) {
|
||||
editor = monaco.editor.createDiffEditor(refEditor.value, options)
|
||||
editor = monaco.editor.createDiffEditor(refEditor.value, {
|
||||
...options,
|
||||
diffAlgorithm: 'legacy',
|
||||
ignoreTrimWhitespace: false,
|
||||
hideUnchangedRegions: {
|
||||
enabled: true
|
||||
},
|
||||
})
|
||||
} else {
|
||||
editor = monaco.editor.create(refEditor.value, options)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user