Avoid crashing with 2 instances of the same LSP (#9134)

pull/9213/head
Gabriel Lopes Rodrigues 10 months ago committed by GitHub
parent 85fce2f5b6
commit 7fd266efa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -915,10 +915,17 @@ fn start_client(
} }
// next up, notify<initialized> // next up, notify<initialized>
_client let notification_result = _client
.notify::<lsp::notification::Initialized>(lsp::InitializedParams {}) .notify::<lsp::notification::Initialized>(lsp::InitializedParams {})
.await .await;
.unwrap();
if let Err(e) = notification_result {
log::error!(
"failed to notify language server of its initialization: {}",
e
);
return;
}
initialize_notify.notify_one(); initialize_notify.notify_one();
}); });

Loading…
Cancel
Save