You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jan Richter edited this page Mar 24, 2020
·
5 revisions
Lookup
// through editors viewconstdiffEditor1=awaitnewEditorView().openEditor('editorTitle');// directlyconstdiffEditor2=newDiffEditor(newEdiotrView(),'editorTitle');
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 editorconstoriginal=awaitdiffEditor1.getOriginalEditor();// get the modified editorconstchanged=awaitdiffEditor1.getModifiedEditor();