Skip to content

Commit 2feb039

Browse files
committed
1 parent 5222c24 commit 2feb039

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
394394
if (this._notebookViewModel === undefined || !this._notebookViewModel.equal(textModel)) {
395395
this._detachModel();
396396
await this._attachModel(textModel, viewState);
397+
} else {
398+
this._restoreListViewState(viewState);
397399
}
398400

399401
// clear state

0 commit comments

Comments
 (0)