fix notebook content provider readonly

pull/125931/head
rebornix 2021-07-19 18:40:15 -07:00
parent 0159e559a0
commit b805d2e949
1 changed files with 5 additions and 1 deletions

View File

@ -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 {