summaryrefslogtreecommitdiff
path: root/internal/lsp/fallback_items_test.go
blob: 0a08a0d66f8029181cb6c66523b7204a1d843167 (plain)
1
2
3
4
5
6
7
8
9
10
11
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)
	}
}