diff options
| author | Paul Buetow <paul@buetow.org> | 2025-09-26 08:07:35 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-09-26 08:07:35 +0300 |
| commit | 439ebb14fa6fb43bfda2e0ee6811c37f96b15ecc (patch) | |
| tree | b2d2e4052106cf0dfc8ecdde9673e0b327ee8173 /internal/lsp | |
| parent | 2efcd2c4dda97831058851e8911281d5db5ce1c6 (diff) | |
Skip chat handling for inline prompts
Diffstat (limited to 'internal/lsp')
| -rw-r--r-- | internal/lsp/handlers_document.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/lsp/handlers_document.go b/internal/lsp/handlers_document.go index 69f482f..282ef26 100644 --- a/internal/lsp/handlers_document.go +++ b/internal/lsp/handlers_document.go @@ -91,7 +91,11 @@ func (s *Server) detectAndHandleChat(uri string) { return } suffix, prefixes, _ := s.chatConfig() + _, _, openChar, closeChar := s.inlineMarkers() for i, raw := range d.lines { + if lineHasInlinePrompt(raw, openChar, closeChar) { + continue + } // Find last non-space character index j := len(raw) - 1 for j >= 0 { |
