lsp_code_actions_preview
Preview LSP code actions (quickfixes, refactors, source actions) for a file range or diagnostic. No commands executed, no files written.
Instructions
Return available LSP code actions (quickfixes, refactors, source actions) for a range or diagnostic, with safe edit previews. No commands are executed and no files are written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| only | No | Filter by code action kinds. | |
| range | No | Selection range. | |
| filePath | Yes | Absolute or workspace-relative path to the file. | |
| maxActions | No | Max actions to return. | |
| includeDiff | No | Include diffs for edit actions. | |
| diagnosticIndexes | No | Indexes of diagnostics to target. |