Commit graph

11 commits

Author SHA1 Message Date
Jacob Kim
4b82ea7885 feat: keep track of inline indices and newlines 2025-07-11 14:21:07 -07:00
Jacob Kim
c36b27da03 feat: keep track of indices 2025-07-11 11:39:33 -07:00
Jacob Kim
e0129c45b4 feat: create a character level diff algo 2025-07-11 11:18:43 -07:00
Nate
a4cc558cf5 diff cleaning logic 2025-04-21 12:09:14 -07:00
Nate
be8afa6540 ignore removed trailing whitespace in myers diff 2025-03-15 19:10:25 -07:00
Owen W. Taylor
698633815f reapplyWithMyersDiff(): don't skip trailing blank lines
myersDiff inherits the jsdiff behavior for trailing \n, so would
consider "foo\n" => "foo" a changed single line, rather than a change
from "foo", "" to "foo" - this would result in a trailing blank line
in the highlighted region silently vanishing from the buffer.

Adding \n to the inputs so that lines are \n terminated rather than
separated fixes this.

To make myersDiff logically consistent, pass ignoreNewlineAtEof: true
to jsdiff. (This is actually not needed for this bug fix.)
2025-02-25 15:36:40 -05:00
Test
b5cab4609b chore: apply eslint to vscode and core 2024-11-11 07:38:52 -08:00
Nate
7c0d10e744 progress 2024-09-13 19:31:58 -07:00
Nate
c4f2881bf5 checkpoint instant apply v2 2024-09-13 18:11:44 -07:00
Nate
48031dab06 checkpoint 2024-09-13 17:12:22 -07:00
Nate
fe58421cc4 myers diff utility 2024-09-13 15:45:24 -07:00