Expand description
lsp_code_actions engine: quickfixes and refactoring suggestions.
The flow that makes this valuable for agents:
- Model writes code โ passive injection reports an error
- Model calls
lsp_code_actions(file, line)โ gets back available fixes - Model re-calls with
apply_indexto apply the chosen fix to disk
Without this, the model would need to manually figure out the fix from the diagnostic message โ slower and more error-prone.
Functionsยง
- run_
code_ actions - List or apply code actions at a position.