feat: add zed extension
This commit is contained in:
parent
dbf0808233
commit
76a1a6b695
5 changed files with 901 additions and 1 deletions
23
zed-extension/src/lib.rs
Normal file
23
zed-extension/src/lib.rs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
use zed_extension_api::{self as zed, Command, LanguageServerId, Result, Worktree};
|
||||
|
||||
struct StreamdExtension;
|
||||
|
||||
impl zed::Extension for StreamdExtension {
|
||||
fn new() -> Self {
|
||||
StreamdExtension
|
||||
}
|
||||
|
||||
fn language_server_command(
|
||||
&mut self,
|
||||
_language_server_id: &LanguageServerId,
|
||||
_worktree: &Worktree,
|
||||
) -> Result<Command> {
|
||||
Ok(Command {
|
||||
command: "streamd".into(),
|
||||
args: vec!["lsp".into()],
|
||||
env: vec![],
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
zed::register_extension!(StreamdExtension);
|
||||
Loading…
Add table
Add a link
Reference in a new issue