diff --git a/src/vs/workbench/contrib/notebook/common/notebookEditorModel.ts b/src/vs/workbench/contrib/notebook/common/notebookEditorModel.ts index 6658ea671e0..bfb60576259 100644 --- a/src/vs/workbench/contrib/notebook/common/notebookEditorModel.ts +++ b/src/vs/workbench/contrib/notebook/common/notebookEditorModel.ts @@ -127,7 +127,11 @@ export class ComplexNotebookEditorModel extends EditorModel implements INotebook } isReadonly(): boolean { - return false; + if (this._fileService.hasCapability(this.resource, FileSystemProviderCapabilities.Readonly)) { + return true; + } else { + return false; + } } isOrphaned(): boolean {