Yi Ming
f9e068117b
refactor(lsp): share code by get_locations #38902
...
Problem:
`vim.lsp.buf.definition`/`vim.lsp.buf.declaration` use the same underlying code
via `get_locations`, whereas `vim.lsp.buf.reference` does not. This is because
`buf.reference` does not perform a jump when there is only one item.
Solution:
In #38510 , I simplified the jump logic using `:cfirst`, so they can now share
code more easily. Additionally, this PR enables `buf.definition` to display the
corresponding qflist name.
2026-04-09 13:46:50 -04:00
..
2026-04-09 04:11:32 +00:00
2025-05-06 05:15:31 -07:00
2026-04-09 04:11:32 +00:00
2026-03-13 20:32:01 +01:00
2026-04-03 18:26:04 +08:00
2026-03-13 20:32:01 +01:00
2026-04-08 04:33:26 -04:00
2026-04-09 13:46:50 -04:00
2025-08-17 20:40:28 -07:00
2026-03-20 17:40:45 -04:00
2026-03-22 09:20:04 -04:00
2026-04-08 20:34:47 -04:00
2026-03-12 11:12:56 +01:00
2025-12-16 13:22:05 -05:00
2026-03-13 15:57:36 -04:00
2025-12-30 01:44:52 -05:00
2025-08-23 12:01:38 -07:00
2026-03-11 18:24:57 +01:00
2026-02-23 17:33:13 -05:00
2026-04-08 20:34:47 -04:00
2025-06-06 15:36:48 +01:00
2026-04-08 23:11:20 +00:00
2026-03-28 09:59:54 -04:00
2026-02-12 07:15:20 -05:00
2026-01-12 10:58:01 -08:00
2026-03-28 09:22:22 -04:00
2025-08-28 11:34:01 +02:00
2026-01-09 10:07:15 +01:00
2026-03-11 18:00:18 +01:00
2026-03-23 08:00:53 -04:00
2026-03-12 11:04:05 -04:00
2026-04-08 20:34:47 -04:00
2026-04-05 13:11:59 -04:00
2026-04-08 20:34:47 -04:00
2026-04-08 11:38:27 -04:00
2024-02-03 16:53:41 +01:00
2026-04-09 11:01:28 -04:00
2025-02-10 03:04:01 -08:00
2026-03-11 18:00:18 +01:00
2026-04-08 20:34:47 -04:00
2025-07-12 20:54:22 -07:00
2026-03-13 15:57:36 -04:00
2026-03-23 10:14:48 -04:00
2026-04-01 17:04:41 -04:00
2026-03-13 20:32:01 +01:00
2026-04-08 13:33:00 -04:00