Skip to content

Commit 2cec75a

Browse files
committed
1 parent 6832054 commit 2cec75a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vs/workbench/browser/parts/editor/textDiffEditor.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ export class TextDiffEditor extends AbstractTextEditor<IDiffEditorViewState> imp
195195

196196
control.restoreViewState(editorViewState);
197197

198+
if (options?.revealIfVisible) {
199+
control.revealFirstDiff();
200+
}
201+
198202
return true;
199203
}
200204

0 commit comments

Comments
 (0)