提交 b7cbc1d2 编写于 作者: I isidor

bulkEditService: do not throw if there is a readonly model

#57032
上级 e68d2918
......@@ -180,9 +180,6 @@ class BulkEditModel implements IDisposable {
if (!model || !model.textEditorModel) {
throw new Error(`Cannot load file ${key}`);
}
if (model.isReadonly()) {
throw new Error(localize('editorIsReadonly', "Cannot edit a read-only editor."));
}
let task: ModelEditTask;
if (this._editor && this._editor.getModel().uri.toString() === model.textEditorModel.uri.toString()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册