summaryrefslogtreecommitdiff
path: root/internal/lsp/handlers_document.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lsp/handlers_document.go')
-rw-r--r--internal/lsp/handlers_document.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/lsp/handlers_document.go b/internal/lsp/handlers_document.go
index 9a12948..3897885 100644
--- a/internal/lsp/handlers_document.go
+++ b/internal/lsp/handlers_document.go
@@ -154,7 +154,7 @@ func (s *Server) detectAndHandleChat(uri string) {
lineIdx := i
lastIdx := j
go func(prompt string, remove int) {
- ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
+ ctx, cancel := context.WithTimeout(context.Background(), 25*time.Second)
defer cancel()
// Build messages with history and context_mode aware extras.
pos := Position{Line: lineIdx, Character: lastIdx + 1}