mirror of
https://github.com/golang/go
synced 2024-11-18 08:54:45 -07:00
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>
This commit is contained in:
parent
8979540587
commit
0d0afa43d5
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user