From b8f1ca6a929db2ed7a8505c45e5053a7edd43ba9 Mon Sep 17 00:00:00 2001 From: Rebecca Stambler Date: Wed, 18 Sep 2019 16:54:31 -0400 Subject: [PATCH] internal/lsp: fix bug in diagnostics for watched changed files I accidentally copy-pasted code in CL 196019. Change-Id: I092bfd745182f1c35e0540f080f139c4ced15776 Reviewed-on: https://go-review.googlesource.com/c/tools/+/196277 Run-TryBot: Rebecca Stambler TryBot-Result: Gobot Gobot Reviewed-by: Ian Cottrell --- internal/lsp/watched_files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/lsp/watched_files.go b/internal/lsp/watched_files.go index 08758d7f0c..5a700296c6 100644 --- a/internal/lsp/watched_files.go +++ b/internal/lsp/watched_files.go @@ -86,7 +86,7 @@ func (s *Server) didChangeWatchedFiles(ctx context.Context, params *protocol.Did } return nil } - go s.diagnostics(view, uri) + go s.diagnostics(view, otherFile.URI()) } } }