mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 03:25:38 +00:00
If the code editor is readonly still alow bulk edits to be applied
This commit is contained in:
parent
556bfbeee6
commit
0b9e2a1c8a
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue