Revert "fix #114171."

This reverts commit e32e353bfd.
This commit is contained in:
rebornix
2021-01-25 10:43:19 -08:00
parent c708e3d5cf
commit 7468a06012
13 changed files with 44 additions and 140 deletions

View File

@@ -646,13 +646,14 @@ export class MainThreadNotebooks extends Disposable implements MainThreadNoteboo
switch (revealType) {
case NotebookEditorRevealType.Default:
return notebookEditor.revealCellRangeInView(range);
notebookEditor.revealInView(cell);
break;
case NotebookEditorRevealType.InCenter:
return notebookEditor.revealInCenter(cell);
notebookEditor.revealInCenter(cell);
break;
case NotebookEditorRevealType.InCenterIfOutsideViewport:
return notebookEditor.revealInCenterIfOutsideViewport(cell);
case NotebookEditorRevealType.AtTop:
return notebookEditor.revealInViewAtTop(cell);
notebookEditor.revealInCenterIfOutsideViewport(cell);
break;
default:
break;
}