Shiven Garia
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-31 17:55:05 +02:00
2026-03-27 14:41:25 +01:00
2026-03-31 17:55:05 +02:00
2026-03-24 12:52:35 +01:00
2026-03-31 17:55:05 +02:00
2026-03-31 17:55:05 +02:00
2026-03-31 10:54:52 -04:00
2026-03-24 00:58:09 +01:00
2026-03-19 15:32:04 +00:00
2026-03-30 14:23:02 +00:00
2026-03-25 21:46:46 +00:00
2026-03-30 13:07:13 +00:00
2026-03-06 19:18:33 +00:00
2026-03-27 10:26:52 +00:00
2026-03-24 16:59:55 -04:00
2026-03-25 08:39:17 +01:00
2026-03-31 17:55:05 +02:00
2026-03-30 10:20:36 -07:00
2026-03-27 18:06:56 -07:00
2026-03-27 14:41:25 +01:00
2026-03-27 14:56:46 -07:00
2026-03-23 12:54:08 +01:00
2026-03-27 14:41:25 +01:00
2026-03-24 13:22:21 +00:00
2026-03-27 14:56:46 -07:00
2026-03-30 18:04:21 +02:00
2026-03-30 09:06:59 +00:00
2026-03-30 09:06:59 +00:00
2026-03-27 14:41:25 +01:00
2026-03-31 17:55:05 +02:00
2026-03-30 11:02:09 -04:00
2026-03-27 11:10:57 +01:00
2026-03-25 23:41:09 +00:00
2026-03-30 16:14:22 -04:00
2026-03-31 12:48:22 +03:00
2026-03-31 17:55:05 +02:00
2026-03-31 17:55:05 +02:00
2026-03-24 19:11:30 -04:00
2026-03-27 14:41:25 +01:00
2026-03-31 17:55:05 +02:00
2026-03-31 17:55:05 +02:00
2026-03-25 07:45:31 +00:00
2026-03-27 14:41:25 +01:00
2026-03-27 11:10:01 -04:00
2026-03-31 12:40:01 -04:00
2026-03-27 11:19:36 -04:00
2026-03-30 22:06:53 +00:00
2026-03-30 07:31:22 +00:00
2026-03-31 13:16:53 +00:00
2026-03-30 16:23:07 +00:00
2026-03-24 11:05:12 +00:00
2026-03-31 13:16:53 +00:00
2026-03-31 20:08:20 +03:00
2026-03-30 16:23:07 +00:00
2026-03-31 08:55:31 +00:00
2026-03-25 07:54:23 +00:00
2026-03-31 17:55:05 +02:00
2026-03-28 18:41:33 -04:00
2026-03-27 14:41:25 +01:00
2026-03-30 18:04:21 +02:00
2026-03-31 17:55:05 +02:00
2026-03-27 19:28:24 +01:00
2026-03-26 11:33:36 +01:00
2026-03-31 17:55:05 +02:00
2026-03-27 15:06:21 +02:00
2026-03-25 12:07:34 -06:00
2026-03-27 14:41:25 +01:00
2026-03-27 11:10:57 +01:00
2026-03-24 00:58:09 +01:00
2026-03-31 11:24:25 +05:30
2026-03-27 14:41:25 +01:00
2026-03-31 17:55:05 +02:00
2026-03-27 14:41:25 +01:00
2026-03-30 14:23:02 +00:00
2026-03-27 14:41:25 +01:00
2026-03-27 14:41:25 +01:00
2026-03-23 12:48:49 +00:00
2026-03-27 14:41:25 +01:00
2026-03-30 18:04:21 +02:00
2026-03-31 17:55:05 +02:00
2026-03-27 14:41:25 +01:00
2026-03-31 02:46:07 +00:00
2026-03-31 12:48:22 +03:00
2026-03-31 12:40:01 -04:00
2026-03-30 22:06:53 +00:00
2026-03-27 14:41:25 +01:00
2026-03-26 13:48:18 +00:00
2026-03-31 17:55:05 +02:00
2026-03-30 22:06:53 +00:00
2026-03-27 14:41:25 +01:00
2026-03-27 14:41:25 +01:00
2026-03-27 14:41:25 +01:00
2026-03-21 14:05:30 +01:00
2026-03-30 09:06:59 +00:00
2026-03-31 17:55:05 +02:00
2026-03-27 14:41:25 +01:00
2026-03-30 18:47:50 -07:00
2026-03-31 17:55:05 +02:00
2026-03-31 17:55:05 +02:00
2026-03-25 12:07:34 -06:00
2026-03-27 14:41:25 +01:00
2026-03-31 17:55:05 +02:00
2026-03-31 19:18:15 +02:00
2026-03-27 14:41:25 +01:00
2026-03-21 14:05:30 +01:00
2026-03-29 14:43:05 +00:00
2026-03-31 08:06:37 -06:00
2026-03-31 11:19:45 +00:00
2026-03-25 03:15:51 +00:00
2026-03-30 07:56:00 -07:00
2026-03-31 17:55:05 +02:00
2026-03-30 07:17:02 +00:00
2026-03-31 08:06:37 -06:00
2026-03-27 14:41:25 +01:00
2026-03-27 14:41:25 +01:00
2026-03-27 14:41:25 +01:00
2026-03-27 15:31:49 +00:00
2026-03-28 17:48:34 +00:00
2026-03-31 12:42:24 -03:00
2026-03-27 15:31:49 +00:00
2026-03-27 14:41:25 +01:00
2026-03-30 10:17:48 +00:00
2026-03-31 11:19:45 +00:00
2026-03-19 12:53:26 -04:00
2026-03-27 14:41:25 +01:00
2026-03-31 11:19:45 +00:00
2026-03-31 12:40:01 -04:00
2026-03-31 17:55:05 +02:00
2026-03-31 17:55:05 +02:00
2026-03-31 20:50:49 +03:00