Marco Munizaga
14ffd7b53f
editor: Implement Go to next/prev Document Highlight ( #35994 )
...
Closes #21193
Closes #14703
Having the ability to navigate directly to the next
symbolHighlight/reference lets you follow the data flow of a variable.
If you highlight the function itself (depending on the LSP), you can
also navigate to all returns.
Note that this is a different feature from navigating to the next match,
as that is not language-context aware. For example, if you have a var
named foo it would also navigate to an unrelated variable fooBar.
Here's how this patch works:
- The editor struct has a background_highlights.
- Collect all highlights with the keys [DocumentHighlightRead,
DocumentHighlightWrite]
- Depending on the direction, move the cursor to the next or previous
highlight relative to the current position.
Release Notes:
- Added `editor::GoToNextDocumentHighlight` and
`editor::GoToPreviousDocumentHighlight` to navigate to the next LSP
document highlight. Useful for navigating to the next usage of a certain
symbol.
2025-09-09 18:38:38 +00:00
..
2025-09-09 13:28:02 -03:00
2025-08-25 16:04:44 -06:00
2025-09-04 17:14:53 +02:00
2025-09-08 11:22:36 +00:00
2025-09-03 22:10:14 +00:00
2025-09-09 13:28:02 -03:00
2025-09-09 17:22:19 +00:00
2025-09-09 13:28:02 -03:00
2025-09-09 13:28:02 -03:00
2025-09-09 15:51:22 +00:00
2025-09-04 06:02:13 +02:00
2025-08-19 21:26:17 +02:00
2025-08-13 13:25:52 -06:00
2025-09-04 17:14:53 +02:00
2025-08-27 23:24:19 +00:00
2025-08-28 13:32:30 -06:00
2025-08-27 23:24:19 +00:00
2025-09-04 17:14:53 +02:00
2025-09-04 15:19:02 -04:00
2025-09-04 15:19:02 -04:00
2025-08-29 17:18:52 -07:00
2025-09-08 21:53:17 -06:00
2025-07-22 11:55:24 -04:00
2025-08-29 18:13:06 -04:00
2025-08-27 23:24:19 +00:00
2025-09-04 17:14:53 +02:00
2025-09-04 15:19:02 -04:00
2025-09-08 21:53:17 -06:00
2025-09-03 03:49:04 +00:00
2025-09-05 12:40:47 -04:00
2025-05-04 08:28:39 +00:00
2025-08-22 11:45:47 -04:00
2025-08-07 01:28:41 +00:00
2025-09-09 15:51:22 +00:00
2025-09-08 21:53:17 -06:00
2025-09-08 21:53:17 -06:00
2025-04-02 13:26:34 -07:00
2025-08-26 00:27:52 +00:00
2025-09-05 14:22:32 +02:00
2025-09-08 12:23:33 +03:00
2025-09-03 00:03:56 +00:00
2025-09-05 14:22:32 +02:00
2025-08-21 19:59:42 -04:00
2025-08-19 21:26:17 +02:00
2025-09-04 15:19:02 -04:00
2025-08-28 07:53:32 +00:00
2025-09-03 22:10:14 +00:00
2025-07-06 14:52:16 +02:00
2025-08-20 12:20:13 +02:00
2025-09-05 21:35:28 +00:00
2025-09-04 05:51:48 +00:00
2025-09-08 09:14:24 -06:00
2025-08-27 03:24:50 +08:00
2025-08-22 11:45:47 -04:00
2025-08-22 11:45:47 -04:00
2025-09-09 18:38:38 +00:00
2025-08-20 20:14:30 +02:00
2025-07-10 21:08:43 +02:00
2025-08-19 20:33:44 +00:00
2025-08-20 12:05:58 +02:00
2025-08-16 19:00:31 +00:00
2025-09-04 15:19:02 -04:00
2025-09-04 15:19:02 -04:00
2025-09-09 00:18:43 +00:00
2025-08-21 19:59:42 -04:00
2025-09-06 00:47:39 +02:00
2025-08-19 21:26:17 +02:00
2025-09-06 00:27:14 +02:00
2025-08-19 13:27:24 +00:00
2025-08-06 10:53:20 +02:00
2025-09-09 18:16:29 +00:00
2025-09-04 15:19:02 -04:00
2025-09-09 17:55:25 +00:00
2025-09-04 15:19:02 -04:00
2025-08-28 12:00:44 +00:00
2025-09-09 13:46:59 +03:00
2025-08-29 16:56:10 -04:00
2025-08-21 17:19:57 +00:00
2025-08-19 13:27:24 +00:00
2025-08-20 12:20:13 +02:00
2025-04-02 13:26:34 -07:00
2025-08-28 07:53:32 +00:00
2025-09-04 15:19:02 -04:00
2025-09-02 20:18:15 -03:00
2025-08-18 21:54:35 +00:00
2025-08-19 20:33:44 +00:00
2025-06-18 16:01:28 +05:30
2025-09-04 15:19:02 -04:00
2025-09-09 09:36:12 -03:00
2025-09-08 20:14:36 -04:00
2025-09-08 19:15:17 +00:00
2025-09-09 15:51:22 +00:00
2025-09-08 06:57:16 +02:00
2025-09-08 18:51:13 -03:00
2025-08-19 13:27:24 +00:00
2025-09-08 11:22:36 +00:00
2025-09-09 17:50:18 +00:00
2025-09-05 09:52:57 -07:00
2025-05-20 23:06:07 +00:00
2025-08-21 15:56:16 +02:00
2025-09-03 01:22:57 +02:00
2025-09-08 19:15:17 +00:00
2025-09-08 12:57:22 -04:00
2025-09-08 12:37:11 +00:00
2025-05-20 23:06:07 +00:00
2025-07-02 21:14:33 -04:00
2025-08-20 12:20:13 +02:00
2025-09-03 01:22:57 +02:00
2025-09-08 23:11:53 +00:00
2025-07-17 14:25:55 +00:00
2025-07-08 14:34:57 +00:00
2025-08-19 20:33:44 +00:00
2025-09-08 21:53:17 -06:00
2025-09-08 04:26:01 +00:00
2025-09-08 11:09:54 -04:00
2025-09-08 22:01:55 +02:00
2025-09-06 07:42:15 +02:00
2025-06-27 14:31:31 -06:00
2025-09-04 15:19:02 -04:00
2025-08-20 12:20:13 +02:00
2025-08-29 17:18:52 -07:00
2025-08-20 12:20:13 +02:00
2025-08-19 21:26:17 +02:00
2025-09-09 13:28:02 -03:00
2025-09-04 15:19:02 -04:00
2025-08-29 14:07:27 -03:00
2025-08-20 12:20:13 +02:00
2025-09-08 21:53:17 -06:00
2025-09-04 15:19:02 -04:00
2025-08-19 13:27:24 +00:00
2025-05-23 14:53:53 +00:00
2025-09-03 14:24:32 -07:00
2025-09-08 14:19:41 -04:00
2025-09-06 00:47:39 +02:00
2025-09-03 00:52:04 +00:00
2025-08-19 13:27:24 +00:00
2025-09-06 04:22:55 +00:00
2025-09-08 21:53:17 -06:00
2025-08-28 03:51:22 +00:00
2025-09-09 18:10:03 +00:00
2025-04-02 13:26:34 -07:00
2025-09-09 09:36:12 -03:00
2025-05-20 23:06:07 +00:00
2025-08-19 13:27:24 +00:00
2025-09-08 20:14:36 -04:00
2025-08-20 12:20:13 +02:00
2025-09-08 20:14:36 -04:00
2025-09-04 22:30:48 +00:00
2025-08-19 21:26:17 +02:00
2025-08-19 21:26:17 +02:00
2025-08-19 13:27:24 +00:00
2025-09-06 01:09:50 +00:00
2025-04-02 13:26:34 -07:00
2025-08-20 12:20:13 +02:00
2025-08-19 20:33:44 +00:00
2025-09-04 17:14:53 +02:00
2025-09-04 17:14:53 +02:00
2025-08-29 16:17:22 -04:00
2025-08-19 21:26:17 +02:00
2025-08-19 20:33:44 +00:00
2025-08-21 19:59:42 -04:00
2025-08-28 21:07:02 +00:00
2025-09-05 14:57:58 +00:00
2025-08-20 14:35:59 +00:00
2025-08-19 21:26:17 +02:00
2025-08-15 15:37:52 -04:00
2025-09-09 10:39:09 -04:00
2025-09-09 10:31:37 -04:00
2025-09-04 17:14:53 +02:00
2025-09-08 11:09:54 -04:00
2025-04-02 13:26:34 -07:00
2025-08-20 12:20:13 +02:00
2025-08-08 15:34:36 -03:00
2025-05-06 10:18:48 +00:00
2025-09-09 11:50:58 -06:00
2025-09-06 00:47:39 +02:00
2025-09-08 20:14:36 -04:00
2025-09-09 09:36:12 -03:00
2025-05-23 19:31:25 +00:00
2025-07-30 23:03:53 +05:30
2025-09-09 12:13:20 -06:00
2025-06-13 06:32:29 +00:00
2025-08-15 13:54:24 +03:00
2025-09-08 21:53:17 -06:00
2025-09-04 15:19:02 -04:00
2025-08-25 14:28:11 -04:00
2025-08-20 12:20:13 +02:00
2025-08-19 20:33:44 +00:00
2025-09-09 18:16:29 +00:00
2025-09-09 11:50:58 -06:00
2025-08-26 21:08:45 +00:00
2025-09-09 05:55:28 +00:00
2025-09-03 10:59:14 +00:00
2025-09-03 22:10:14 +00:00
2025-09-07 11:16:49 -06:00
2025-09-07 11:16:49 -06:00
2025-09-06 00:27:14 +02:00
2025-09-04 15:19:02 -04:00