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 <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Peter Weinberger <pjw@google.com>
diff --git a/internal/lsp/fake/editor.go b/internal/lsp/fake/editor.go
index 8678716..e88eb3f 100644
--- a/internal/lsp/fake/editor.go
+++ b/internal/lsp/fake/editor.go
@@ -703,7 +703,7 @@
// 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 @@
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
}