diff --git a/src/tools.ts b/src/tools.ts index 9684c8a..17219a5 100644 --- a/src/tools.ts +++ b/src/tools.ts @@ -177,7 +177,7 @@ export function lockCodeRanges ( // Handle selection of the last line of an editable range disposableStore.add( editor.onDidChangeCursorSelection((e) => { - if (canEditRange(e.selection)) { + if (canEditRange(e.selection) || e.selection.isEmpty()) { return } const model = editor.getModel()