diff options
| author | Paul Buetow <paul@buetow.org> | 2025-10-03 23:50:49 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-10-03 23:50:49 +0300 |
| commit | 420b5aebf888c638ac096e1476c06eac979ac257 (patch) | |
| tree | 59434cbc37837399d7b5bc7920ffd7be62f1fc7d /internal/lsp/handlers_document.go | |
| parent | e36a5446bc62842ae3b3e165f66fecb7285a8c6a (diff) | |
Switch inline prompt markers to >! prefixv0.15.1
Diffstat (limited to 'internal/lsp/handlers_document.go')
| -rw-r--r-- | internal/lsp/handlers_document.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/lsp/handlers_document.go b/internal/lsp/handlers_document.go index da7db51..a047324 100644 --- a/internal/lsp/handlers_document.go +++ b/internal/lsp/handlers_document.go @@ -91,9 +91,9 @@ func (s *Server) detectAndHandleChat(uri string) { return } suffix, prefixes, _ := s.chatConfig() - _, _, openChar, closeChar := s.inlineMarkers() + openStr, _, openChar, closeChar := s.inlineMarkers() for i, raw := range d.lines { - if lineHasInlinePrompt(raw, openChar, closeChar) { + if lineHasInlinePrompt(raw, openStr, openChar, closeChar) { if s.currentLLMClient() != nil { pos := Position{Line: i, Character: len(raw)} go s.runInlinePrompt(uri, pos) @@ -221,8 +221,8 @@ func (s *Server) runInlinePrompt(uri string, pos Position) { return } line := d.lines[pos.Line] - _, _, openChar, closeChar := s.inlineMarkers() - if !lineHasInlinePrompt(line, openChar, closeChar) { + openStr, _, openChar, closeChar := s.inlineMarkers() + if !lineHasInlinePrompt(line, openStr, openChar, closeChar) { return } p := CompletionParams{TextDocument: TextDocumentIdentifier{URI: uri}, Position: Position{Line: pos.Line, Character: len(line)}} |
