2aa6fa772b
We never need to send empty diagnostics to the client unless we have previously sent a non-empty set. These empty diagnostics account for a large amount of traffic during initial analysis and also could be quite large when modifying files with dependencies. See https://github.com/dart-lang/sdk/issues/53501 Change-Id: I3d0e2ea2633469da905c8ca328dcc89e38a64edc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/337582 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>