diff options
Diffstat (limited to 'internal/lsp/fallback_items_test.go')
| -rw-r--r-- | internal/lsp/fallback_items_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/lsp/fallback_items_test.go b/internal/lsp/fallback_items_test.go new file mode 100644 index 0000000..0ce3542 --- /dev/null +++ b/internal/lsp/fallback_items_test.go @@ -0,0 +1,12 @@ +package lsp + +import "testing" + +func TestFallbackCompletionItems(t *testing.T) { + s := newTestServer() + items := s.fallbackCompletionItems("doc") + if len(items) != 1 || items[0].Label != "hexai-complete" || items[0].InsertText != "hexai" { + t.Fatalf("unexpected fallback items: %+v", items) + } +} + |
