Skip to content

Commit ce44d8b

Browse files
committed
proper fix for readonly model
fixes #53022
1 parent 9dbbe69 commit ce44d8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/parts/files/common/editors/fileEditorInput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export class FileEditorInput extends EditorInput implements IFileEditorInput {
200200
if (model && model.hasState(ModelState.ORPHAN)) {
201201
return localize('orphanedFile', "{0} (deleted from disk)", label);
202202
}
203-
if (model && model.isReadonly) {
203+
if (model && model.isReadonly()) {
204204
return localize('readonlyFile', "{0} (read-only)", label);
205205
}
206206

0 commit comments

Comments
 (0)