From 0cc284a08390f248841e865d61346a9991f668af Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Tue, 26 Jul 2022 18:11:37 +0000 Subject: [PATCH] Nit tweaks in LSP Analysis Server Change-Id: I8f1dee82486f357dcfc64294852ea02d23b9e8a3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252761 Reviewed-by: Konstantin Shcheglov Auto-Submit: Samuel Rawlins Commit-Queue: Konstantin Shcheglov --- pkg/analysis_server/lib/src/lsp/lsp_analysis_server.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/analysis_server/lib/src/lsp/lsp_analysis_server.dart b/pkg/analysis_server/lib/src/lsp/lsp_analysis_server.dart index 4c7ca36a166..3c57d356e0d 100644 --- a/pkg/analysis_server/lib/src/lsp/lsp_analysis_server.dart +++ b/pkg/analysis_server/lib/src/lsp/lsp_analysis_server.dart @@ -114,7 +114,7 @@ class LspAnalysisServer extends AbstractAnalysisServer { int contextBuilds = 0; /// The subscription to the stream of incoming messages from the client. - late StreamSubscription _channelSubscription; + late final StreamSubscription _channelSubscription; /// A completer that tracks in-progress analysis context rebuilds. /// @@ -440,7 +440,7 @@ class LspAnalysisServer extends AbstractAnalysisServer { _channelSubscription.pause(completer.future); try { - // `await` here is imported to ensure `finally` doesn't execute until + // `await` here is important to ensure `finally` doesn't execute until // `operation()` completes (`whenComplete` is not available on // `FutureOr`). return await operation();