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.

zed_extension_api: Add default implementation for `language_server_command` (#13234)

Marshall Bowers5cbb3609523c
diff --git a/crates/extension_api/src/extension_api.rs b/crates/extension_api/src/extension_api.rs
index 71b9b2ebea3..e117b2b1271 100644
--- a/crates/extension_api/src/extension_api.rs
+++ b/crates/extension_api/src/extension_api.rs
@@ -66,9 +66,11 @@ pub trait Extension: Send + Sync {
/// language.
fn language_server_command(
&mut self,
- language_server_id: &LanguageServerId,
- worktree: &Worktree,
- ) -> Result<Command>;
+ _language_server_id: &LanguageServerId,
+ _worktree: &Worktree,
+ ) -> Result<Command> {
+ Err("`language_server_command` not implemented".to_string())
+ }
/// Returns the initialization options to pass to the specified language server.
fn language_server_initialization_options(