未验证 提交 5338ec73 编写于 作者: I Isidor Nikolic 提交者: GitHub

Merge pull request #69858 from Microsoft/isidorn/allowEditsOnReadonlyEditors

fixes #68549
......@@ -410,6 +410,10 @@ export class BulkEditService implements IBulkEditService {
}
}
if (codeEditor && codeEditor.getConfiguration().readOnly) {
// If the code editor is readonly still alow bulk edits to be applied #68549
codeEditor = undefined;
}
const bulkEdit = new BulkEdit(codeEditor, options.progress, this._logService, this._textModelService, this._fileService, this._textFileService, this._labelService, this._configurationService);
bulkEdit.add(edits);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册