提交 ce44d8be 编写于 作者: I isidor

proper fix for readonly model

fixes #53022
上级 9dbbe693
......@@ -200,7 +200,7 @@ export class FileEditorInput extends EditorInput implements IFileEditorInput {
if (model && model.hasState(ModelState.ORPHAN)) {
return localize('orphanedFile', "{0} (deleted from disk)", label);
}
if (model && model.isReadonly) {
if (model && model.isReadonly()) {
return localize('readonlyFile', "{0} (read-only)", label);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册