summaryrefslogtreecommitdiff
path: root/internal/lsp/handlers_codeaction.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lsp/handlers_codeaction.go')
-rw-r--r--internal/lsp/handlers_codeaction.go3
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)
}