diff options
| author | Paul Buetow <paul@buetow.org> | 2025-09-06 10:25:36 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-09-06 10:25:36 +0300 |
| commit | 5be9532cfa630f4aacd8d879c3e4f5cc316da0fa (patch) | |
| tree | 0a901680fccd1e2703ffdbd9284ccff932be1d67 /internal/lsp/init_and_trigger_test.go | |
| parent | 70f1d0e78c57dfa5beae779b3d392b6e6fa44c14 (diff) | |
feat(lsp): configurable inline/chat triggers; switch inline markers to >text>/>>text>; update docs and example config; tests updated to new triggers and raise LSP coverage to >=85%; chore: remove semicolon legacy; chore(mage): auto-refresh coverage daily if docs/coverage.out is older than 24h
Diffstat (limited to 'internal/lsp/init_and_trigger_test.go')
| -rw-r--r-- | internal/lsp/init_and_trigger_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/lsp/init_and_trigger_test.go b/internal/lsp/init_and_trigger_test.go index cdc907e..64253a9 100644 --- a/internal/lsp/init_and_trigger_test.go +++ b/internal/lsp/init_and_trigger_test.go @@ -45,8 +45,7 @@ func TestIsTriggerEvent_Variants(t *testing.T) { // 3) Fallback char left of cursor p3 := CompletionParams{Position: Position{Line:0, Character:3}} if !s.isTriggerEvent(p3, "ab:") { t.Fatalf("fallback char should trigger") } - // 4) Bare ';;' disables trigger + // 4) Bare double-open disables trigger p4 := CompletionParams{Position: Position{Line:0, Character:2}} - if s.isTriggerEvent(p4, ";;") { t.Fatalf("bare ;; should not trigger") } + if s.isTriggerEvent(p4, ">>") { t.Fatalf("bare double-open should not trigger") } } - |
