Skip to content

feat: LSP code action and execute command support#100

Merged
loyalpartner merged 1 commit intomainfrom
feat/code-action
Apr 2, 2026
Merged

feat: LSP code action and execute command support#100
loyalpartner merged 1 commit intomainfrom
feat/code-action

Conversation

@loyalpartner
Copy link
Copy Markdown
Owner

Summary

  • Add daemon-side codeAction and executeCommand handlers with full LSP ↔ Vim type conversion
  • Workspace edits grouped by file (FileEdits) matching VimScript apply_workspace_edit format
  • Fix s:execute_code_action to apply workspace edits before executing commands (LSP spec order)

Test plan

  • zig build + zig build test pass
  • E2E tests pass (74 passed, 6 skipped, 2 flaky ZLS timeouts)
  • Manual: open .zig file with diagnostics, <leader>ca, select action, verify edit applied

Add full code action pipeline: Vim requests → daemon handler → LSP server →
grouped workspace edits back to Vim. Workspace edits are grouped by file with
start_line/start_column fields matching VimScript's apply_workspace_edit format.
@loyalpartner loyalpartner merged commit 70928ac into main Apr 2, 2026
2 of 4 checks passed
@loyalpartner loyalpartner deleted the feat/code-action branch April 2, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant