mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 20:41:45 +00:00
Nit tweaks in LSP Analysis Server
Change-Id: I8f1dee82486f357dcfc64294852ea02d23b9e8a3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252761 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Auto-Submit: Samuel Rawlins <srawlins@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
parent
9e83c53c61
commit
0cc284a083
|
@ -114,7 +114,7 @@ class LspAnalysisServer extends AbstractAnalysisServer {
|
|||
int contextBuilds = 0;
|
||||
|
||||
/// The subscription to the stream of incoming messages from the client.
|
||||
late StreamSubscription<void> _channelSubscription;
|
||||
late final StreamSubscription<void> _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();
|
||||
|
|
Loading…
Reference in a new issue