File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/vs/workbench/contrib/accessibility/browser Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -595,9 +595,6 @@ export class AccessibleView extends Disposable implements ITextModelContentProvi
595595 return ;
596596 }
597597 this . _editorWidget . setModel ( model ) ;
598- if ( previousPosition ) {
599- this . _editorWidget . setPosition ( previousPosition ) ;
600- }
601598 const domNode = this . _editorWidget . getDomNode ( ) ;
602599 if ( ! domNode ) {
603600 return ;
@@ -634,6 +631,8 @@ export class AccessibleView extends Disposable implements ITextModelContentProvi
634631 this . _editorWidget . revealLine ( position . lineNumber ) ;
635632 }
636633 }
634+ } else if ( previousPosition ) {
635+ this . _editorWidget . setPosition ( previousPosition ) ;
637636 }
638637 } ) ;
639638 this . _updateToolbar ( this . _currentProvider . actions , provider . options . type ) ;
You can’t perform that action at this time.
0 commit comments