Skip to content

Commit

Permalink
fix notebook content provider readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Jul 20, 2021
1 parent 0159e55 commit b805d2e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b805d2e

Please sign in to comment.