Skip to content

Commit

Permalink
Fix analytics logic to report on analysis complete transitions.
Browse files Browse the repository at this point in the history
Bug: #52089
Change-Id: If9fe7d702cd70c3e8804a59e47870d6aad7cf680
Fixes: #52089
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/296023
Commit-Queue: Brian Wilkerson <[email protected]>
Auto-Submit: Janice Collins <[email protected]>
Commit-Queue: Janice Collins <[email protected]>
Commit-Queue: Keerti Parthasarathy <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>
Reviewed-by: Keerti Parthasarathy <[email protected]>
  • Loading branch information
jcollins-g authored and Commit Queue committed Apr 18, 2023
1 parent fffd7e8 commit 7c1e2fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/analysis_server/lib/src/lsp/lsp_analysis_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,9 @@ class LspAnalysisServer extends AnalysisServer {
// Only send analysis analytics after analysis is complete.
reportAnalysisAnalytics();
}
if (isAnalyzing && !wasAnalyzing) {
wasAnalyzing = true;
}

if (clientCapabilities?.workDoneProgress != true) {
channel.sendNotification(NotificationMessage(
Expand Down

0 comments on commit 7c1e2fe

Please sign in to comment.