If the code editor is readonly still alow bulk edits to be applied

This commit is contained in:
isidor 2019-03-06 09:57:44 +01:00
parent 556bfbeee6
commit 0b9e2a1c8a

View file

@ -410,6 +410,10 @@ export class BulkEditService implements IBulkEditService {
}
}
if (codeEditor && codeEditor.getConfiguration().readOnly) {
// If the code editor is readonly still allow 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);