@@ -660,7 +660,7 @@ export class NotebookTextDiffEditor extends EditorPane implements INotebookTextD
660
660
const currentViewModels = this . notebookDiffViewModel . items ;
661
661
while ( prevChangeIndex >= 0 ) {
662
662
const vm = currentViewModels [ prevChangeIndex ] ;
663
- if ( vm . type !== 'unchanged' ) {
663
+ if ( vm . type !== 'unchanged' && vm . type !== 'placeholder' ) {
664
664
break ;
665
665
}
666
666
@@ -672,7 +672,7 @@ export class NotebookTextDiffEditor extends EditorPane implements INotebookTextD
672
672
this . _list . reveal ( prevChangeIndex ) ;
673
673
} else {
674
674
// go to the last one
675
- const index = findLastIdx ( currentViewModels , vm => vm . type !== 'unchanged' ) ;
675
+ const index = findLastIdx ( currentViewModels , vm => vm . type !== 'unchanged' && vm . type !== 'placeholder' ) ;
676
676
if ( index >= 0 ) {
677
677
this . _list . setFocus ( [ index ] ) ;
678
678
this . _list . reveal ( index ) ;
@@ -695,7 +695,7 @@ export class NotebookTextDiffEditor extends EditorPane implements INotebookTextD
695
695
const currentViewModels = this . notebookDiffViewModel . items ;
696
696
while ( nextChangeIndex < currentViewModels . length ) {
697
697
const vm = currentViewModels [ nextChangeIndex ] ;
698
- if ( vm . type !== 'unchanged' ) {
698
+ if ( vm . type !== 'unchanged' && vm . type !== 'placeholder' ) {
699
699
break ;
700
700
}
701
701
@@ -707,7 +707,7 @@ export class NotebookTextDiffEditor extends EditorPane implements INotebookTextD
707
707
this . _list . reveal ( nextChangeIndex ) ;
708
708
} else {
709
709
// go to the first one
710
- const index = currentViewModels . findIndex ( vm => vm . type !== 'unchanged' ) ;
710
+ const index = currentViewModels . findIndex ( vm => vm . type !== 'unchanged' && vm . type !== 'placeholder' ) ;
711
711
if ( index >= 0 ) {
712
712
this . _list . setFocus ( [ index ] ) ;
713
713
this . _list . reveal ( index ) ;
0 commit comments