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:
Piotr Osiewicz 2025-02-27 16:45:59 +01:00 committed by GitHub
parent 5c400dac8d
commit 2e98bc17cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 34 additions and 19 deletions

View file

@ -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> {