ide-assi 0.431.0 → 0.433.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,12 +235071,7 @@ 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
|
-
}
|
|
235078
|
-
|
|
235079
|
-
console.log(tobeLines);
|
|
235074
|
+
const tobeLines = text.split('\n');
|
|
235080
235075
|
|
|
235081
235076
|
for (let i = 0; i < tobeLines.length; i++) {
|
|
235082
235077
|
// 빈 줄이 아니고, 마지막 줄이면서 줄바꿈이 없는 경우가 아니면 데코레이션
|
|
@@ -235086,8 +235081,9 @@ class IdeDiff extends HTMLElement {
|
|
|
235086
235081
|
}
|
|
235087
235082
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
235088
235083
|
*/
|
|
235089
|
-
|
|
235090
|
-
|
|
235084
|
+
if (!(i === tobeLines.length - 1 && tobeLines[i] === '' && text.endsWith('\n'))) {
|
|
235085
|
+
tobeLineBuilder.add(tobeCursor, tobeCursor, insertedLineDeco);
|
|
235086
|
+
}
|
|
235091
235087
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
235092
235088
|
}
|
|
235093
235089
|
break;
|
|
@@ -235096,7 +235092,7 @@ class IdeDiff extends HTMLElement {
|
|
|
235096
235092
|
console.log(diffMatchPatchExports.diff_match_patch.DIFF_DELETE, text);
|
|
235097
235093
|
const asisLines = text.split('\n');
|
|
235098
235094
|
for (let i = 0; i < asisLines.length; i++) {
|
|
235099
|
-
if (!(i === asisLines.length - 1 && asisLines[i] === '' &&
|
|
235095
|
+
if (!(i === asisLines.length - 1 && asisLines[i] === '' && text.endsWith('\n'))) {
|
|
235100
235096
|
asisLineBuilder.add(asisCursor, asisCursor, deletedLineDeco);
|
|
235101
235097
|
}
|
|
235102
235098
|
asisCursor += asisLines[i].length + (i < asisLines.length - 1 ? 1 : 0);
|
package/dist/bundle.esm.js
CHANGED
|
@@ -235067,12 +235067,7 @@ 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
|
-
}
|
|
235074
|
-
|
|
235075
|
-
console.log(tobeLines);
|
|
235070
|
+
const tobeLines = text.split('\n');
|
|
235076
235071
|
|
|
235077
235072
|
for (let i = 0; i < tobeLines.length; i++) {
|
|
235078
235073
|
// 빈 줄이 아니고, 마지막 줄이면서 줄바꿈이 없는 경우가 아니면 데코레이션
|
|
@@ -235082,8 +235077,9 @@ class IdeDiff extends HTMLElement {
|
|
|
235082
235077
|
}
|
|
235083
235078
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
235084
235079
|
*/
|
|
235085
|
-
|
|
235086
|
-
|
|
235080
|
+
if (!(i === tobeLines.length - 1 && tobeLines[i] === '' && text.endsWith('\n'))) {
|
|
235081
|
+
tobeLineBuilder.add(tobeCursor, tobeCursor, insertedLineDeco);
|
|
235082
|
+
}
|
|
235087
235083
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
235088
235084
|
}
|
|
235089
235085
|
break;
|
|
@@ -235092,7 +235088,7 @@ class IdeDiff extends HTMLElement {
|
|
|
235092
235088
|
console.log(diffMatchPatchExports.diff_match_patch.DIFF_DELETE, text);
|
|
235093
235089
|
const asisLines = text.split('\n');
|
|
235094
235090
|
for (let i = 0; i < asisLines.length; i++) {
|
|
235095
|
-
if (!(i === asisLines.length - 1 && asisLines[i] === '' &&
|
|
235091
|
+
if (!(i === asisLines.length - 1 && asisLines[i] === '' && text.endsWith('\n'))) {
|
|
235096
235092
|
asisLineBuilder.add(asisCursor, asisCursor, deletedLineDeco);
|
|
235097
235093
|
}
|
|
235098
235094
|
asisCursor += asisLines[i].length + (i < asisLines.length - 1 ? 1 : 0);
|
|
@@ -279,12 +279,7 @@ 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
|
-
|
|
283
|
-
if (text.endsWith('\n')) {
|
|
284
|
-
tobeLines.splice(tobeLines.length - 1, 1);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
console.log(tobeLines);
|
|
282
|
+
const tobeLines = text.split('\n');
|
|
288
283
|
|
|
289
284
|
for (let i = 0; i < tobeLines.length; i++) {
|
|
290
285
|
// 빈 줄이 아니고, 마지막 줄이면서 줄바꿈이 없는 경우가 아니면 데코레이션
|
|
@@ -294,8 +289,9 @@ export class IdeDiff extends HTMLElement {
|
|
|
294
289
|
}
|
|
295
290
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
296
291
|
*/
|
|
297
|
-
|
|
298
|
-
|
|
292
|
+
if (!(i === tobeLines.length - 1 && tobeLines[i] === '' && text.endsWith('\n'))) {
|
|
293
|
+
tobeLineBuilder.add(tobeCursor, tobeCursor, insertedLineDeco);
|
|
294
|
+
}
|
|
299
295
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
300
296
|
}
|
|
301
297
|
break;
|
|
@@ -304,7 +300,7 @@ export class IdeDiff extends HTMLElement {
|
|
|
304
300
|
console.log(diff_match_patch.DIFF_DELETE, text);
|
|
305
301
|
const asisLines = text.split('\n');
|
|
306
302
|
for (let i = 0; i < asisLines.length; i++) {
|
|
307
|
-
if (!(i === asisLines.length - 1 && asisLines[i] === '' &&
|
|
303
|
+
if (!(i === asisLines.length - 1 && asisLines[i] === '' && text.endsWith('\n'))) {
|
|
308
304
|
asisLineBuilder.add(asisCursor, asisCursor, deletedLineDeco);
|
|
309
305
|
}
|
|
310
306
|
asisCursor += asisLines[i].length + (i < asisLines.length - 1 ? 1 : 0);
|
package/package.json
CHANGED
|
@@ -279,12 +279,7 @@ 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
|
-
|
|
283
|
-
if (text.endsWith('\n')) {
|
|
284
|
-
tobeLines.splice(tobeLines.length - 1, 1);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
console.log(tobeLines);
|
|
282
|
+
const tobeLines = text.split('\n');
|
|
288
283
|
|
|
289
284
|
for (let i = 0; i < tobeLines.length; i++) {
|
|
290
285
|
// 빈 줄이 아니고, 마지막 줄이면서 줄바꿈이 없는 경우가 아니면 데코레이션
|
|
@@ -294,8 +289,9 @@ export class IdeDiff extends HTMLElement {
|
|
|
294
289
|
}
|
|
295
290
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
296
291
|
*/
|
|
297
|
-
|
|
298
|
-
|
|
292
|
+
if (!(i === tobeLines.length - 1 && tobeLines[i] === '' && text.endsWith('\n'))) {
|
|
293
|
+
tobeLineBuilder.add(tobeCursor, tobeCursor, insertedLineDeco);
|
|
294
|
+
}
|
|
299
295
|
tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
|
|
300
296
|
}
|
|
301
297
|
break;
|
|
@@ -304,7 +300,7 @@ export class IdeDiff extends HTMLElement {
|
|
|
304
300
|
console.log(diff_match_patch.DIFF_DELETE, text);
|
|
305
301
|
const asisLines = text.split('\n');
|
|
306
302
|
for (let i = 0; i < asisLines.length; i++) {
|
|
307
|
-
if (!(i === asisLines.length - 1 && asisLines[i] === '' &&
|
|
303
|
+
if (!(i === asisLines.length - 1 && asisLines[i] === '' && text.endsWith('\n'))) {
|
|
308
304
|
asisLineBuilder.add(asisCursor, asisCursor, deletedLineDeco);
|
|
309
305
|
}
|
|
310
306
|
asisCursor += asisLines[i].length + (i < asisLines.length - 1 ? 1 : 0);
|