lsp: Serialize LSP notifications on background threads (#39403)

This should reduce hiccups when opening large files.

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz
2025-10-08 19:48:40 +00:00
committed by GitHub
parent cd656485c8
commit ef423148fc
14 changed files with 186 additions and 147 deletions
+1 -1
View File
@@ -606,7 +606,7 @@ impl LspLogView {
});
server
.notify::<SetTrace>(&SetTraceParams { value: level })
.notify::<SetTrace>(SetTraceParams { value: level })
.ok();
}
}
@@ -73,7 +73,7 @@ async fn test_lsp_log_view(cx: &mut TestAppContext) {
let log_view = window.root(cx).unwrap();
let mut cx = VisualTestContext::from_window(*window, cx);
language_server.notify::<lsp::notification::LogMessage>(&lsp::LogMessageParams {
language_server.notify::<lsp::notification::LogMessage>(lsp::LogMessageParams {
message: "hello from the server".into(),
typ: lsp::MessageType::INFO,
});