diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-19 08:23:44 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-19 08:23:44 +0300 |
| commit | 360e5456660678a0babab602e0bc80304a55db3f (patch) | |
| tree | acffc5fa57ba9ad71198d904d034b561e04bc165 /internal/lsp/handlers_codeaction.go | |
| parent | 682a413db516e1a0201e8fea41e706a7666391d6 (diff) | |
ok0 document LSP and LLM exports
Diffstat (limited to 'internal/lsp/handlers_codeaction.go')
| -rw-r--r-- | internal/lsp/handlers_codeaction.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/lsp/handlers_codeaction.go b/internal/lsp/handlers_codeaction.go index aba2113..d9f466c 100644 --- a/internal/lsp/handlers_codeaction.go +++ b/internal/lsp/handlers_codeaction.go @@ -1,4 +1,5 @@ // Code Action handlers and helpers split from handlers.go for clarity. + package lsp import ( @@ -36,7 +37,9 @@ type customActionPayload struct { // CodeActionHandler builds and resolves code actions for a specific action type. type CodeActionHandler interface { + // Build returns code actions for the requested document range. Build(s *Server, p CodeActionParams, selection string) []CodeAction + // Resolve completes a deferred code action before it is applied. Resolve(s *Server, action CodeAction, payload codeActionPayload) (CodeAction, bool) } |
