Files
neovim/runtime/doc
Mathias Fußenegger c4f322b769 refactor(lsp): always fetch lenses again in codelens.run (#37720)
The auto-refresh has a bit of a delay so it can happen that when a user
runs `codelens.run` it operates on an outdated state and either
does nothing, or fails.

This changes the logic for `.run` to always fetch the current lenses
before (optional) prompt and execution.

See discussion in https://github.com/neovim/neovim/pull/37689#discussion_r2764235931

This could potentially be optimized to first check if there's local
state with a version that matches the current buf-version, but in my
testing re-fetching them always was quickly enough that `run` still
feels instant and doing it this way simplifies the logic.

Side effect of the change is that `.run` also works if codelens aren't
enabled - for power users who know what the codelens would show that can
be useful.
2026-02-06 13:31:44 +01:00
..
2026-01-27 17:14:57 -05:00
2026-01-12 03:50:57 +00:00
2025-12-08 01:43:02 -05:00
2024-05-15 23:19:26 +02:00
2026-01-07 08:11:42 +08:00
2025-12-06 20:33:02 -05:00
2025-12-06 20:33:02 -05:00
2025-12-06 20:33:02 -05:00
2023-06-25 17:14:28 +02:00
2026-01-07 08:11:42 +08:00
2025-12-06 20:33:02 -05:00
2026-01-27 17:14:57 -05:00
2025-12-16 13:46:04 -05:00
2026-01-12 03:50:57 +00:00
2025-12-15 13:55:15 -05:00
2025-12-15 13:55:15 -05:00
2025-12-15 13:55:15 -05:00
2026-01-23 09:30:37 +01:00
2025-12-15 13:55:15 -05:00
2025-09-28 20:57:59 -07:00
2025-12-15 13:55:15 -05:00
2025-12-15 13:55:15 -05:00
2025-12-06 20:33:02 -05:00
2025-12-15 13:55:15 -05:00
2026-01-27 17:14:57 -05:00
2026-01-07 08:11:42 +08:00
2025-12-06 20:33:02 -05:00
2025-12-06 20:33:02 -05:00
2025-12-15 13:55:15 -05:00
2025-12-16 13:46:04 -05:00
2025-12-16 12:55:32 +08:00
2025-12-15 13:55:15 -05:00