Skip to content

Commit bcbf0d8

Browse files
authored
Fix NotebookEditorModel#isResolved. Fix microsoft#161049. (microsoft#161829)
1 parent 045bed8 commit bcbf0d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/common/notebookEditorModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ export class SimpleNotebookEditorModel extends EditorModel implements INotebookE
473473
}
474474

475475
override isResolved(): this is IResolvedNotebookEditorModel {
476-
return Boolean(this._workingCopy);
476+
return Boolean(this._workingCopy?.model?.notebookModel);
477477
}
478478

479479
isDirty(): boolean {

0 commit comments

Comments
 (0)