提交 e67edc80 编写于 作者: A Alex Dima

Fixes #42833: Allow multiple cursors everywhere in read only editors

上级 034871d8
......@@ -704,10 +704,6 @@ export namespace CoreNavigationCommands {
public runCoreEditorCommand(cursors: ICursors, args: any): void {
const context = cursors.context;
if (context.config.readOnly) {
return;
}
let newState: CursorState;
if (args.wholeLine) {
newState = CursorMoveCommands.line(context, cursors.getPrimaryCursor(), false, args.position, args.viewPosition);
......@@ -769,10 +765,6 @@ export namespace CoreNavigationCommands {
public runCoreEditorCommand(cursors: ICursors, args: any): void {
const context = cursors.context;
if (context.config.readOnly) {
return;
}
const lastAddedCursorIndex = cursors.getLastAddedCursorIndex();
let newStates = cursors.getAll().slice(0);
......@@ -1251,9 +1243,6 @@ export namespace CoreNavigationCommands {
public runCoreEditorCommand(cursors: ICursors, args: any): void {
const context = cursors.context;
if (context.config.readOnly) {
return;
}
const lastAddedCursorIndex = cursors.getLastAddedCursorIndex();
......@@ -1312,12 +1301,6 @@ export namespace CoreNavigationCommands {
}
public runCoreEditorCommand(cursors: ICursors, args: any): void {
const context = cursors.context;
if (context.config.readOnly) {
return;
}
const lastAddedCursorIndex = cursors.getLastAddedCursorIndex();
let newStates = cursors.getAll().slice(0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册