Skip to main content

Module code_lens

Module code_lens 

Source
Expand description

Code lens handler: “Update N outdated dependencies”.

Mirrors handlers::code_actions’ delegation pattern, but produces a single document-scoped lens (or none) bound to COMMAND_ID rather than a per-position action. The command handler that applies the edit lives in server::execute_command, not here — it needs the raw Vec<TextEdit>, not the wrapped CodeLens.

Constants§

COMMAND_ID
The workspace/executeCommand id bound to the lens produced here.

Functions§

handle_code_lens
Handles textDocument/codeLens requests using trait-based delegation.