continue-custom/core/diff
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-examples lazy ast diff algorithm 2024-09-13 01:13:06 -07:00
myers.test.ts reapplyWithMyersDiff(): don't skip trailing blank lines 2025-02-25 15:36:40 -05:00
myers.ts reapplyWithMyersDiff(): don't skip trailing blank lines 2025-02-25 15:36:40 -05:00
streamDiff.test.ts fix import switching errors 2024-11-11 18:01:03 -08:00
streamDiff.ts chore: apply eslint to vscode and core 2024-11-11 07:38:52 -08:00
util.test.ts ide utils, chat, diff, count tokens attempts 2024-12-06 00:22:26 -08:00
util.ts renderChatMessage, return ContextItem[] from tools, and other refactoring 2024-11-21 18:31:50 -08:00