From eb72b06fe8e62cb77af73f6dc558d384a5a5fe80 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 19 Sep 2025 22:52:48 +0300 Subject: fix --- internal/lsp/document_handlers_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/lsp/document_handlers_test.go') diff --git a/internal/lsp/document_handlers_test.go b/internal/lsp/document_handlers_test.go index eae5020..1fdd0da 100644 --- a/internal/lsp/document_handlers_test.go +++ b/internal/lsp/document_handlers_test.go @@ -34,6 +34,7 @@ func TestDidOpenChangeClose_UpdateDocs(t *testing.T) { func TestClientShowDocument_WritesRequest(t *testing.T) { var out bytes.Buffer s := &Server{logger: log.New(io.Discard, "", 0), docs: make(map[string]*document), out: &out} + initServerDefaults(s) uri := "file:///x.go" sel := Range{Start: Position{Line: 1}, End: Position{Line: 2}} out.Reset() @@ -47,6 +48,7 @@ func TestClientShowDocument_WritesRequest(t *testing.T) { func TestHandleExecuteCommand_ShowDocument(t *testing.T) { var out bytes.Buffer s := &Server{logger: log.New(io.Discard, "", 0), docs: make(map[string]*document), out: &out} + initServerDefaults(s) uri := "file:///x.go" r := Range{Start: Position{Line: 0}, End: Position{Line: 0}} args := []any{uri, r} @@ -61,6 +63,7 @@ func TestHandleExecuteCommand_ShowDocument(t *testing.T) { func TestDeferShowDocument_WritesLater(t *testing.T) { var out bytes.Buffer s := &Server{logger: log.New(io.Discard, "", 0), docs: make(map[string]*document), out: &out} + initServerDefaults(s) uri := "file:///x.go" out.Reset() s.deferShowDocument(uri, Range{Start: Position{Line: 0}, End: Position{Line: 0}}) -- cgit v1.2.3