lsp: Use available workspace folders in initialize params (#25753)
Closes https://github.com/zed-industries/zed/issues/25743 Closes https://github.com/biomejs/biome-zed/issues/73 Release Notes: - Fixed issues with launching Svelte/Biome language servers
This commit is contained in:
parent
5c400dac8d
commit
2e98bc17cb
5 changed files with 34 additions and 19 deletions
|
@ -5,7 +5,7 @@ use futures::StreamExt;
|
|||
use gpui::{App, AsyncApp, Task};
|
||||
use http_client::github::latest_github_release;
|
||||
pub use language::*;
|
||||
use lsp::{InitializeParams, LanguageServerBinary, LanguageServerName};
|
||||
use lsp::{LanguageServerBinary, LanguageServerName};
|
||||
use project::Fs;
|
||||
use regex::Regex;
|
||||
use serde_json::json;
|
||||
|
@ -373,14 +373,6 @@ impl super::LspAdapter for GoLspAdapter {
|
|||
filter_range,
|
||||
})
|
||||
}
|
||||
fn prepare_initialize_params(
|
||||
&self,
|
||||
mut original: InitializeParams,
|
||||
) -> Result<InitializeParams> {
|
||||
#[allow(deprecated)]
|
||||
let _ = original.root_uri.take();
|
||||
Ok(original)
|
||||
}
|
||||
}
|
||||
|
||||
fn parse_version_output(output: &Output) -> Result<&str> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue