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:
parent
e69b995a3b
commit
ceffc7e1cf
2 changed files with 38 additions and 7 deletions
|
@ -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(),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue