Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

When clicking the checkbox, toggle open the LSP trace logs (#8689)

Kirill Bulatovb7784d414a76
diff --git a/crates/language_tools/src/lsp_log.rs b/crates/language_tools/src/lsp_log.rs
index 8723183789c..d2bdd95d7dc 100644
--- a/crates/language_tools/src/lsp_log.rs
+++ b/crates/language_tools/src/lsp_log.rs
@@ -823,7 +823,7 @@ impl Render for LspLogToolbarItemView {
selection,
Selection::Selected
);
- view.toggle_logging_for_server(
+ view.toggle_rpc_logging_for_server(
row.server_id,
enabled,
cx,
@@ -887,7 +887,7 @@ impl LspLogToolbarItemView {
}
}
- fn toggle_logging_for_server(
+ fn toggle_rpc_logging_for_server(
&mut self,
id: LanguageServerId,
enabled: bool,
@@ -899,6 +899,9 @@ impl LspLogToolbarItemView {
if !enabled && Some(id) == log_view.current_server_id {
log_view.show_logs_for_server(id, cx);
cx.notify();
+ } else if enabled {
+ log_view.show_rpc_trace_for_server(id, cx);
+ cx.notify();
}
cx.focus(&log_view.focus_handle);
});