diff options
| author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2026-02-06 13:31:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-06 13:31:44 +0100 |
| commit | c4f322b769ea42829180d0be32d68014efd159cc (patch) | |
| tree | 1bc2cba862c4a96a79fa957b36413c8ac877fe4b /test/functional/vimscript | |
| parent | 6dd0a7d60a28274399928e960a0a520ab2b86bcd (diff) | |
| download | rneovim-c4f322b769ea42829180d0be32d68014efd159cc.tar.gz rneovim-c4f322b769ea42829180d0be32d68014efd159cc.tar.bz2 rneovim-c4f322b769ea42829180d0be32d68014efd159cc.zip | |
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.
Diffstat (limited to 'test/functional/vimscript')
0 files changed, 0 insertions, 0 deletions