Files
zed/crates
Shiven GariaandOleksiy Syvokon 56104fb17e edit_prediction: Fix special token check matching ======= inside comments (#52510)
Closes #52489

The special token check in `prompt_input_contains_special_tokens` used
`String::contains()` to look for `=======\n` in the buffer. This meant
any line containing `=======` (like `// =======` section separators)
would cause edit predictions to bail out entirely.

Fixed by only matching when the token appears at the start of a line,
since the git merge markers are always placed at line boundaries in the
prompt.

Added tests for both the helper function and a regression test for the
reported issue.

---------

Co-authored-by: Oleksiy Syvokon <oleksiy.syvokon@gmail.com>
2026-03-31 20:50:49 +03:00
..
2026-03-27 14:56:46 -07:00
2026-03-11 03:08:39 +00:00
2026-03-30 09:06:59 +00:00
2026-02-26 18:36:50 +01:00
2026-03-30 09:06:59 +00:00
2026-03-31 08:06:37 -06:00