@lvce-editor/editor-worker 19.78.7 → 19.78.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/diff-sdk.js CHANGED
@@ -22071,8 +22071,9 @@ const getNewSelections$2 = (selections, lines, getDelta) => {
22071
22071
  newSelections[i] = selectionStartRow;
22072
22072
  newSelections[i + 1] = selectionStartColumn;
22073
22073
  if (selectionEndColumn >= getLineLength(line)) {
22074
- newSelections[i + 2] = selectionEndRow + 1;
22075
- newSelections[i + 3] = 0;
22074
+ const isLastRow = selectionEndRow === lines.length - 1;
22075
+ newSelections[i + 2] = isLastRow ? selectionEndRow : selectionEndRow + 1;
22076
+ newSelections[i + 3] = isLastRow ? getLineLength(line) : 0;
22076
22077
  } else {
22077
22078
  const delta = getDelta(line, selectionEndColumn);
22078
22079
  newSelections[i + 2] = selectionEndRow;
@@ -22496,8 +22496,9 @@ const getNewSelections$2 = (selections, lines, getDelta) => {
22496
22496
  newSelections[i] = selectionStartRow;
22497
22497
  newSelections[i + 1] = selectionStartColumn;
22498
22498
  if (selectionEndColumn >= getLineLength(line)) {
22499
- newSelections[i + 2] = selectionEndRow + 1;
22500
- newSelections[i + 3] = 0;
22499
+ const isLastRow = selectionEndRow === lines.length - 1;
22500
+ newSelections[i + 2] = isLastRow ? selectionEndRow : selectionEndRow + 1;
22501
+ newSelections[i + 3] = isLastRow ? getLineLength(line) : 0;
22501
22502
  } else {
22502
22503
  const delta = getDelta(line, selectionEndColumn);
22503
22504
  newSelections[i + 2] = selectionEndRow;
@@ -134,6 +134,17 @@
134
134
  "description": "Controls the display of line numbers",
135
135
  "heading": "Line Numbers",
136
136
  "id": "editor.lineNumbers",
137
+ "jsonSchema": {
138
+ "oneOf": [
139
+ {
140
+ "type": "string",
141
+ "enum": ["on", "off"]
142
+ },
143
+ {
144
+ "type": "boolean"
145
+ }
146
+ ]
147
+ },
137
148
  "options": [
138
149
  {
139
150
  "id": "on",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.78.7",
3
+ "version": "19.78.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"