diff --git a/crates/lsp/src/lsp.rs b/crates/lsp/src/lsp.rs index 514648cfa3..1e37c9765b 100644 --- a/crates/lsp/src/lsp.rs +++ b/crates/lsp/src/lsp.rs @@ -335,6 +335,7 @@ impl LanguageServer { did_change_configuration: Some(DynamicRegistrationClientCapabilities { dynamic_registration: Some(true), }), + workspace_folders: Some(true), ..Default::default() }), text_document: Some(TextDocumentClientCapabilities { diff --git a/crates/zed/src/languages/yaml.rs b/crates/zed/src/languages/yaml.rs index a34bbeb596..a9a87fd585 100644 --- a/crates/zed/src/languages/yaml.rs +++ b/crates/zed/src/languages/yaml.rs @@ -106,6 +106,9 @@ impl LspAdapter for YamlLspAdapter { let settings = cx.global::(); Some( future::ready(serde_json::json!({ + "yaml": { + "keyOrdering": false + }, "[yaml]": { "editor.tabSize": settings.tab_size(Some("YAML")) }