elixir: Respect LSP settings for Lexical (#14655)

This PR updates the Elixir extension with support for reading the LSP
settings when using Lexical as the language server.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-07-17 11:04:34 -04:00 committed by GitHub
parent e69b995a3b
commit ceffc7e1cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 38 additions and 7 deletions

View file

@ -47,10 +47,12 @@ impl zed::Extension for ElixirExtension {
}
Lexical::LANGUAGE_SERVER_ID => {
let lexical = self.lexical.get_or_insert_with(|| Lexical::new());
let lexical_binary =
lexical.language_server_binary(language_server_id, worktree)?;
Ok(zed::Command {
command: lexical.language_server_binary_path(language_server_id, worktree)?,
args: vec![],
command: lexical_binary.path,
args: lexical_binary.args.unwrap_or_default(),
env: Default::default(),
})
}