Wuji Chen
96abd034a9
Fix Cmd+click navigating to file instead of definition ( #49012 )
...
## Summary
- Tighten `link_pattern_file_candidates` regex from `\(([^)]*)\)` to
`]\(([^)]*)\)` so only Markdown link syntax `[title](path)` triggers
path extraction from parentheses
- Prevents function call arguments like `do_work(file2)` from being
incorrectly resolved as file paths, which preempted LSP go-to-definition
Closes #48938
## Test plan
- [x] `cargo test -p editor hover_links` — all 12 tests pass
- [x] New unit tests verify: function calls don't extract arguments as
file candidates; Markdown links still extract correctly
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Release Notes:
- Fixed Cmd+click navigating to file instead of definition in certain
cases
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-27 12:28:34 +01:00
..
2026-02-27 11:04:39 +01:00
2026-02-18 15:49:36 -03:00
2026-02-10 16:03:46 -03:00
2026-02-26 22:32:48 +00:00
2026-02-26 12:24:39 +00:00
2026-02-12 15:46:10 -05:00
2026-02-27 11:04:39 +01:00
2026-02-17 10:41:10 +00:00
2026-02-26 21:19:41 +01:00
2026-02-18 12:00:02 +01:00
2026-02-06 20:14:35 +01:00
2026-02-26 21:19:41 +01:00
2026-02-23 13:28:39 +01:00
2026-02-24 22:20:57 +00:00
2026-02-19 10:41:16 -03:00
2026-02-19 07:23:27 +01:00
2026-02-06 20:21:19 +00:00
2026-02-20 17:11:30 -05:00
2026-02-24 11:19:34 +00:00
2026-02-25 05:48:59 +00:00
2026-02-20 08:32:45 +00:00
2026-02-26 12:24:39 +00:00
2026-02-25 08:12:04 +01:00
2026-02-19 22:13:38 -05:00
2026-02-21 01:20:05 +00:00
2026-02-27 01:07:37 +00:00
2026-02-05 17:34:34 -05:00
2026-02-25 17:33:05 +00:00
2026-02-23 10:20:31 -05:00
2026-02-12 01:06:23 +00:00
2026-02-19 18:57:49 +01:00
2026-02-26 10:37:43 -05:00
2026-02-16 15:24:59 -03:00
2026-02-12 01:06:23 +00:00
2026-02-26 15:41:27 +05:30
2026-02-13 20:16:11 +01:00
2026-02-12 16:26:13 +00:00
2026-02-18 12:00:02 +01:00
2026-02-26 10:37:43 -05:00
2026-02-26 17:06:24 +00:00
2026-02-26 10:37:43 -05:00
2026-02-20 08:32:45 +00:00
2026-02-27 01:07:37 +00:00
2026-02-26 15:36:29 -08:00
2026-02-24 20:27:57 -08:00
2026-02-04 17:54:11 -05:00
2026-02-26 10:37:43 -05:00
2026-02-27 12:28:34 +01:00
2026-02-12 00:28:17 +00:00
2026-02-21 06:11:45 +00:00
2026-02-26 21:19:41 +01:00
2026-02-19 18:57:49 +01:00
2026-02-20 07:25:53 +00:00
2026-02-05 12:13:02 +00:00
2026-02-19 18:57:49 +01:00
2026-02-24 10:37:16 +00:00
2026-02-18 12:00:02 +01:00
2026-02-25 10:45:14 -03:00
2026-02-13 16:05:40 +00:00
2026-02-25 18:32:22 +01:00
2026-02-19 18:57:49 +01:00
2026-02-25 18:32:22 +01:00
2026-02-25 19:45:01 +00:00
2026-02-26 21:19:41 +01:00
2026-02-12 01:06:23 +00:00
2026-02-19 13:19:14 -05:00
2026-02-27 09:18:03 +00:00
2026-02-26 18:36:50 +01:00
2026-02-26 16:58:40 +00:00
2026-02-26 18:36:50 +01:00
2026-02-26 18:36:50 +01:00
2026-02-26 18:36:50 +01:00
2026-02-27 07:59:06 +00:00
2026-02-19 19:15:59 -05:00
2026-02-27 09:18:03 +00:00
2026-02-26 17:54:44 -05:00
2026-02-24 12:56:59 +01:00
2026-02-20 08:32:45 +00:00
2026-02-12 00:28:17 +00:00
2026-02-12 01:06:23 +00:00
2026-02-19 20:46:21 -05:00
2026-02-12 01:06:23 +00:00
2026-02-26 10:47:10 +00:00
2026-02-04 23:03:15 +01:00
2026-02-26 21:19:41 +01:00
2026-02-26 17:54:44 -05:00
2026-02-26 15:18:25 +00:00
2026-02-26 14:53:00 +01:00
2026-02-27 03:14:40 +00:00
2026-02-23 15:24:46 +01:00
2026-02-13 20:16:11 +01:00
2026-02-19 18:57:49 +01:00
2026-02-26 15:41:27 +05:30
2026-02-26 12:24:39 +00:00
2026-02-19 10:52:53 +00:00
2026-02-13 12:03:05 +00:00
2026-02-26 10:37:43 -05:00
2026-02-17 10:41:10 +00:00
2026-02-20 13:36:04 +00:00
2026-02-13 20:16:11 +01:00
2026-02-16 14:33:29 +00:00
2026-02-18 12:00:02 +01:00
2026-02-25 16:29:01 -05:00
2026-02-12 01:06:23 +00:00
2026-02-12 14:02:16 +00:00
2026-02-26 23:27:24 +00:00
2026-02-26 23:27:24 +00:00
2026-02-06 15:34:36 +00:00
2026-02-25 23:01:59 +00:00
2026-02-07 00:36:37 +00:00
2026-02-26 12:24:39 +00:00
2026-02-19 18:57:49 +01:00
2026-02-25 23:35:59 +05:30
2026-02-12 01:06:23 +00:00
2026-02-25 18:32:22 +01:00
2026-02-23 12:39:56 +01:00
2026-02-26 08:42:56 +00:00
2026-02-26 18:36:50 +01:00
2026-02-26 00:15:57 +01:00
2026-02-27 09:18:03 +00:00
2026-02-18 08:53:26 +01:00
2026-02-11 21:30:03 +02:00
2026-02-26 21:19:41 +01:00
2026-02-26 18:36:50 +01:00
2026-02-26 10:37:43 -05:00
2026-02-12 01:06:23 +00:00
2026-02-25 20:39:30 +05:30
2026-02-26 17:54:44 -05:00
2026-02-12 01:06:23 +00:00
2026-02-26 18:53:17 +00:00
2026-02-18 13:01:01 -05:00
2026-02-23 22:58:50 +00:00
2026-02-12 00:28:17 +00:00
2026-02-20 08:32:45 +00:00
2026-02-19 18:57:49 +01:00
2026-02-18 09:52:52 +00:00
2026-02-13 20:16:11 +01:00
2026-02-18 12:00:02 +01:00
2026-02-12 12:33:51 +00:00
2026-02-12 16:30:47 +00:00
2026-02-12 01:06:23 +00:00
2026-02-24 10:27:22 +00:00
2026-02-24 23:33:34 -07:00
2026-02-25 08:12:04 +01:00
2026-02-26 12:01:57 +00:00
2026-02-26 12:01:57 +00:00
2026-02-25 23:01:59 +00:00
2026-02-18 17:07:10 -05:00
2026-02-23 22:46:49 -03:00
2026-02-26 22:32:48 +00:00
2026-02-26 12:01:57 +00:00
2026-02-26 22:32:48 +00:00
2026-02-16 20:11:37 +00:00
2026-02-19 18:57:49 +01:00
2026-02-26 22:32:48 +00:00
2026-02-26 00:15:57 +01:00
2026-02-25 15:47:08 -08:00
2026-02-27 01:31:20 -05:00
2026-02-11 11:24:04 +00:00