ide-assi 0.431.0 → 0.432.0
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/bundle.cjs.js
CHANGED
|
@@ -235071,10 +235071,8 @@ class IdeDiff extends HTMLElement {
|
|
|
235071
235071
|
switch (op) {
|
|
235072
235072
|
case diffMatchPatchExports.diff_match_patch.DIFF_INSERT:
|
|
235073
235073
|
console.log(diffMatchPatchExports.diff_match_patch.DIFF_INSERT, text);
|
|
235074
|
-
|
|
235075
|
-
if (text.endsWith('\n'))
|
|
235076
|
-
tobeLines.splice(tobeLines.length - 1, 1);
|
|
235077
|
-
}
|
|
235074
|
+
const tobeLines = text.split('\n');
|
|
235075
|
+
if (text.endsWith('\n')) ;
|
|
235078
235076
|
|
|
235079
235077
|
console.log(tobeLines);
|
|
235080
235078
|
|
|
@@ -235087,7 +235085,9 @@ class IdeDiff extends HTMLElement {
|
|
|
235087
235085
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
235088
235086
|
*/
|
|
235089
235087
|
console.log(tobeCursor);
|
|
235090
|
-
|
|
235088
|
+
if (!(i === tobeLines.length - 1 && tobeLines[i] === '' && text.endsWith('\n'))) {
|
|
235089
|
+
tobeLineBuilder.add(tobeCursor, tobeCursor, insertedLineDeco);
|
|
235090
|
+
}
|
|
235091
235091
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
235092
235092
|
}
|
|
235093
235093
|
break;
|
package/dist/bundle.esm.js
CHANGED
|
@@ -235067,10 +235067,8 @@ class IdeDiff extends HTMLElement {
|
|
|
235067
235067
|
switch (op) {
|
|
235068
235068
|
case diffMatchPatchExports.diff_match_patch.DIFF_INSERT:
|
|
235069
235069
|
console.log(diffMatchPatchExports.diff_match_patch.DIFF_INSERT, text);
|
|
235070
|
-
|
|
235071
|
-
if (text.endsWith('\n'))
|
|
235072
|
-
tobeLines.splice(tobeLines.length - 1, 1);
|
|
235073
|
-
}
|
|
235070
|
+
const tobeLines = text.split('\n');
|
|
235071
|
+
if (text.endsWith('\n')) ;
|
|
235074
235072
|
|
|
235075
235073
|
console.log(tobeLines);
|
|
235076
235074
|
|
|
@@ -235083,7 +235081,9 @@ class IdeDiff extends HTMLElement {
|
|
|
235083
235081
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
235084
235082
|
*/
|
|
235085
235083
|
console.log(tobeCursor);
|
|
235086
|
-
|
|
235084
|
+
if (!(i === tobeLines.length - 1 && tobeLines[i] === '' && text.endsWith('\n'))) {
|
|
235085
|
+
tobeLineBuilder.add(tobeCursor, tobeCursor, insertedLineDeco);
|
|
235086
|
+
}
|
|
235087
235087
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
235088
235088
|
}
|
|
235089
235089
|
break;
|
|
@@ -279,9 +279,9 @@ export class IdeDiff extends HTMLElement {
|
|
|
279
279
|
switch (op) {
|
|
280
280
|
case diff_match_patch.DIFF_INSERT:
|
|
281
281
|
console.log(diff_match_patch.DIFF_INSERT, text);
|
|
282
|
-
|
|
282
|
+
const tobeLines = text.split('\n');
|
|
283
283
|
if (text.endsWith('\n')) {
|
|
284
|
-
tobeLines.splice(tobeLines.length - 1, 1);
|
|
284
|
+
//tobeLines.splice(tobeLines.length - 1, 1);
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
console.log(tobeLines);
|
|
@@ -295,7 +295,9 @@ export class IdeDiff extends HTMLElement {
|
|
|
295
295
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
296
296
|
*/
|
|
297
297
|
console.log(tobeCursor);
|
|
298
|
-
|
|
298
|
+
if (!(i === tobeLines.length - 1 && tobeLines[i] === '' && text.endsWith('\n'))) {
|
|
299
|
+
tobeLineBuilder.add(tobeCursor, tobeCursor, insertedLineDeco);
|
|
300
|
+
}
|
|
299
301
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
300
302
|
}
|
|
301
303
|
break;
|
package/package.json
CHANGED
|
@@ -279,9 +279,9 @@ export class IdeDiff extends HTMLElement {
|
|
|
279
279
|
switch (op) {
|
|
280
280
|
case diff_match_patch.DIFF_INSERT:
|
|
281
281
|
console.log(diff_match_patch.DIFF_INSERT, text);
|
|
282
|
-
|
|
282
|
+
const tobeLines = text.split('\n');
|
|
283
283
|
if (text.endsWith('\n')) {
|
|
284
|
-
tobeLines.splice(tobeLines.length - 1, 1);
|
|
284
|
+
//tobeLines.splice(tobeLines.length - 1, 1);
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
console.log(tobeLines);
|
|
@@ -295,7 +295,9 @@ export class IdeDiff extends HTMLElement {
|
|
|
295
295
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
296
296
|
*/
|
|
297
297
|
console.log(tobeCursor);
|
|
298
|
-
|
|
298
|
+
if (!(i === tobeLines.length - 1 && tobeLines[i] === '' && text.endsWith('\n'))) {
|
|
299
|
+
tobeLineBuilder.add(tobeCursor, tobeCursor, insertedLineDeco);
|
|
300
|
+
}
|
|
299
301
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
300
302
|
}
|
|
301
303
|
break;
|