feat: add zed extension
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 2m38s
Continuous Integration / Build Package (push) Successful in 3m46s

This commit is contained in:
Konstantin Fickel 2026-04-19 17:58:54 +02:00
parent d872e9e338
commit 9787710d59
Signed by: kfickel
GPG key ID: A793722F9933C1A5
5 changed files with 424 additions and 1 deletions

23
zed-extension/src/lib.rs Normal file
View 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);