DiffEditor

Lookup
Section titled “Lookup”// through editors view, cast the result to DiffEditorconst diffEditor1 = (await new EditorView().openEditor("editorTitle")) as DiffEditor;
// directlyconst diffEditor2 = new DiffEditor();Working with the Contents
Section titled “Working with the Contents”Since diff editor is basicaly two text editors in one, the DiffEditor object gives you the ability to work with two editors:
// get the original editorconst original = await diffEditor1.getOriginalEditor();
// get the modified editorconst changed = await diffEditor1.getModifiedEditor();