jif
dd90f160ed
Prevent stale file search results from being labeled with a new query ( #49946 )
...
## Why
The asynchronous matcher can return results for the previous query while a new query is still running. Labeling those results with the latest query produces a mismatched search snapshot.
## What changed
Only report a file search snapshot when its pattern atoms match the currently requested pattern. Extract snapshot conversion into `snapshot::for_query`, which skips pending results from an older pattern.
## Testing
Add a regression test that changes the query from empty to `bet`, verifies that the old snapshot is withheld, and checks that the completed snapshot contains `beta.txt` with the expected match indices and counts.
GitOrigin-RevId: 01b62b822db69e15480d3233b66ec55c45646fad
2026-10-01 09:52:54 +00:00
..
2026-09-29 22:50:07 +00:00
2026-09-30 17:33:59 +00:00
2026-09-30 05:29:56 +00:00
2026-09-30 00:51:39 +00:00
2026-10-01 05:33:36 +00:00
2026-09-26 23:17:41 +00:00
2026-10-01 04:15:13 +00:00
2026-10-01 02:06:05 +00:00
2026-09-22 06:36:09 +00:00
2026-09-29 18:26:40 +00:00
2026-09-23 18:25:07 +00:00
2026-09-23 00:47:34 +00:00
2026-09-25 00:20:02 +00:00
2026-09-30 18:49:29 +00:00
2026-10-01 08:57:53 +00:00
2026-09-29 13:58:09 +00:00
2026-09-29 03:32:19 +00:00
2026-09-25 16:57:42 +00:00
2026-09-25 16:28:36 +00:00
2026-09-25 15:42:35 +00:00
2026-09-25 20:34:52 +00:00
2026-09-30 16:57:01 +00:00
2026-09-25 00:20:02 +00:00
2026-09-24 01:50:36 +00:00
2026-10-01 00:47:44 +00:00
2026-10-01 06:59:13 +00:00
2026-10-01 08:57:53 +00:00
2026-10-01 03:31:48 +00:00
2026-09-23 22:20:34 +00:00
2026-09-29 13:08:37 +00:00
2026-10-01 08:57:53 +00:00
2026-10-01 02:06:27 +00:00
2026-10-01 00:43:55 +00:00
2026-10-01 06:29:03 +00:00
2026-09-30 11:59:13 +00:00
2026-10-01 01:38:27 +00:00
2026-10-01 04:04:44 +00:00
2026-10-01 09:52:54 +00:00
2026-10-01 00:43:55 +00:00
2026-09-29 04:38:37 +00:00
2026-10-01 01:13:53 +00:00
2026-10-01 01:13:53 +00:00
2026-09-29 22:04:56 +00:00
2026-09-24 14:50:27 +00:00
2026-09-29 22:24:09 +00:00
2026-09-29 11:51:21 +00:00
2026-09-30 05:29:56 +00:00
2026-09-28 14:46:32 +00:00
2026-09-28 06:30:53 +00:00
2026-10-01 02:06:05 +00:00
2026-09-29 18:50:36 +00:00
2026-10-01 01:38:27 +00:00
2026-09-25 19:14:31 +00:00
2026-09-30 04:30:01 +00:00
2026-09-30 17:45:25 +00:00
2026-09-23 22:20:34 +00:00
2026-09-29 01:14:41 +00:00
2026-10-01 05:16:40 +00:00
2026-10-01 02:59:26 +00:00
2026-09-29 01:14:41 +00:00
2026-09-30 04:30:01 +00:00
2026-09-30 18:51:29 +00:00
2026-09-26 23:08:50 +00:00
2026-09-24 18:08:31 +00:00
2026-09-28 15:58:17 +00:00
2026-09-27 03:26:57 +00:00
2026-09-30 19:00:00 +00:00
2026-10-01 04:16:43 +00:00
2026-10-01 01:57:56 +00:00
2026-10-01 06:29:03 +00:00
2026-10-01 07:08:19 +00:00
2026-09-27 19:14:24 +00:00
2026-09-30 19:14:56 +00:00
2026-10-01 02:59:26 +00:00
2026-09-23 04:25:28 +00:00
2026-09-22 23:37:39 +00:00
2026-09-30 17:50:58 +00:00
2026-09-28 19:56:33 +00:00
2026-09-23 00:47:07 +00:00
2026-09-30 18:29:46 +00:00
2026-09-30 18:29:46 +00:00
2026-09-30 03:33:43 +00:00