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.

Ensure zls is used for Zig as a primary language server (#22511)

Kirill Bulatovddc469ca3ef5
diff --git a/assets/settings/default.json b/assets/settings/default.json
index 9f4f2dc34c0..9dbfc08e8d9 100644
--- a/assets/settings/default.json
+++ b/assets/settings/default.json
@@ -1103,6 +1103,9 @@
"prettier": {
"allowed": true
}
+ },
+ "Zig": {
+ "language_servers": ["zls", "..."]
}
},
// Different settings for specific language models.
diff --git a/crates/lsp/src/lsp.rs b/crates/lsp/src/lsp.rs
index 473a7ac64eb..25b6167c747 100644
--- a/crates/lsp/src/lsp.rs
+++ b/crates/lsp/src/lsp.rs
@@ -284,6 +284,7 @@ impl<F: Future> LspRequestFuture<F::Output> for LspRequest<F> {
}
/// Combined capabilities of the server and the adapter.
+#[derive(Debug)]
pub struct AdapterServerCapabilities {
// Reported capabilities by the server
pub server_capabilities: ServerCapabilities,