From 0d0afa43d58a135bb43bdf085a31bfc166c92143 Mon Sep 17 00:00:00 2001 From: Rob Findley Date: Mon, 18 May 2020 21:28:00 -0400 Subject: [PATCH] internal/lsp/fake: fix broken build due to conflicting changes fake.Editor.Server was exported, but CL 233117 was rebased on top while still using the unexported field. Update the rebased code. Change-Id: Ie8f1f2c3948a1122b9e30a843cc33c79ef623ea4 Reviewed-on: https://go-review.googlesource.com/c/tools/+/234494 Run-TryBot: Robert Findley TryBot-Result: Gobot Gobot Reviewed-by: Peter Weinberger --- internal/lsp/fake/editor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/lsp/fake/editor.go b/internal/lsp/fake/editor.go index 8678716a49..e88eb3f009 100644 --- a/internal/lsp/fake/editor.go +++ b/internal/lsp/fake/editor.go @@ -703,7 +703,7 @@ func (e *Editor) CodeLens(ctx context.Context, path string) ([]protocol.CodeLens // CodeAction executes a codeAction request on the server. func (e *Editor) CodeAction(ctx context.Context, path string) ([]protocol.CodeAction, error) { - if e.server == nil { + if e.Server == nil { return nil, nil } e.mu.Lock() @@ -715,7 +715,7 @@ func (e *Editor) CodeAction(ctx context.Context, path string) ([]protocol.CodeAc params := &protocol.CodeActionParams{ TextDocument: e.textDocumentIdentifier(path), } - lens, err := e.server.CodeAction(ctx, params) + lens, err := e.Server.CodeAction(ctx, params) if err != nil { return nil, err }