Files
neovim/runtime/lua/vim
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-10 17:47:16 +02:00
2025-08-17 11:54:53 +08:00
2025-06-06 15:36:48 +01:00
2026-01-27 09:18:02 -05:00
2026-01-09 10:07:15 +01:00
2026-01-27 09:18:02 -05:00
2026-01-27 09:18:02 -05:00
2025-09-16 11:41:36 +08:00
2025-11-22 19:32:45 -05:00