lsp: Fix initialization_options being used as workspace configuration (#17757)
Release Notes: - Fixed user-configured `initialization_options` being passed as `workspace/Configuration` for the vtsls, TypeScript, and YAML language servers. Co-authored-by: Bennet <bennet@zed.dev>
This commit is contained in:
parent
9db68ee6ae
commit
02d5f320ad
3 changed files with 5 additions and 16 deletions
|
@ -146,7 +146,7 @@ impl LspAdapter for YamlLspAdapter {
|
|||
|
||||
let project_options = cx.update(|cx| {
|
||||
language_server_settings(delegate.as_ref(), Self::SERVER_NAME, cx)
|
||||
.and_then(|s| s.initialization_options.clone())
|
||||
.and_then(|s| s.settings.clone())
|
||||
})?;
|
||||
if let Some(override_options) = project_options {
|
||||
merge_json_value_into(override_options, &mut options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue