diff --git a/internal/lsp/watched_files.go b/internal/lsp/watched_files.go index 08758d7f0cb..5a700296c62 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()) } } }