Merge pull request #2347 from zed-industries/disable-yaml-key-ordering
Disable key ordering diagnostic for YAML
This commit is contained in:
commit
abf158a9e4
2 changed files with 4 additions and 0 deletions
|
@ -335,6 +335,7 @@ impl LanguageServer {
|
||||||
did_change_configuration: Some(DynamicRegistrationClientCapabilities {
|
did_change_configuration: Some(DynamicRegistrationClientCapabilities {
|
||||||
dynamic_registration: Some(true),
|
dynamic_registration: Some(true),
|
||||||
}),
|
}),
|
||||||
|
workspace_folders: Some(true),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
text_document: Some(TextDocumentClientCapabilities {
|
text_document: Some(TextDocumentClientCapabilities {
|
||||||
|
|
|
@ -106,6 +106,9 @@ impl LspAdapter for YamlLspAdapter {
|
||||||
let settings = cx.global::<Settings>();
|
let settings = cx.global::<Settings>();
|
||||||
Some(
|
Some(
|
||||||
future::ready(serde_json::json!({
|
future::ready(serde_json::json!({
|
||||||
|
"yaml": {
|
||||||
|
"keyOrdering": false
|
||||||
|
},
|
||||||
"[yaml]": {
|
"[yaml]": {
|
||||||
"editor.tabSize": settings.tab_size(Some("YAML"))
|
"editor.tabSize": settings.tab_size(Some("YAML"))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue