aboutsummaryrefslogtreecommitdiff
path: root/internal/lsp/references.go
diff options
context:
space:
mode:
authorIan Cottrell <iancottrell@google.com>2019-07-10 20:47:54 -0400
committerIan Cottrell <iancottrell@google.com>2019-07-15 03:44:59 +0000
commit1b7e409d2c99fb8c7afe394baf4ee018feea4811 (patch)
treefb1aadbb1dbeca73334e7ec7beca26c953f89482 /internal/lsp/references.go
parentc8ecc7589e39a1da896e840b1e016e24839d17de (diff)
downloadgolang-x-tools-1b7e409d2c99fb8c7afe394baf4ee018feea4811.tar.gz
internal/lsp: convert all logging calls to the context version
Change-Id: I20e3acee4272f05a9f31a7bb4219fc2fe751e6b3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/185988 Run-TryBot: Ian Cottrell <iancottrell@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Diffstat (limited to 'internal/lsp/references.go')
-rw-r--r--internal/lsp/references.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/lsp/references.go b/internal/lsp/references.go
index a6506a594..430dc3ca0 100644
--- a/internal/lsp/references.go
+++ b/internal/lsp/references.go
@@ -9,6 +9,7 @@ import (
"golang.org/x/tools/internal/lsp/protocol"
"golang.org/x/tools/internal/lsp/source"
+ "golang.org/x/tools/internal/lsp/xlog"
"golang.org/x/tools/internal/span"
)
@@ -34,7 +35,7 @@ func (s *Server) references(ctx context.Context, params *protocol.ReferenceParam
}
references, err := ident.References(ctx)
if err != nil {
- view.Session().Logger().Errorf(ctx, "no references for %s: %v", ident.Name, err)
+ xlog.Errorf(ctx, "no references for %s: %v", ident.Name, err)
}
if params.Context.IncludeDeclaration {
// The declaration of this identifier may not be in the