Use the 'jsonc' language id for all JSON files

This way, comments are allowed by the language server.
This commit is contained in:
Max Brunsfeld 2022-04-21 12:08:16 -07:00
parent 3a28f09979
commit f52050a9ec
3 changed files with 29 additions and 4 deletions

View file

@ -127,4 +127,12 @@ impl LspAdapter for JsonLspAdapter {
"provideFormatter": true
}))
}
fn id_for_language(&self, name: &str) -> Option<String> {
if name == "JSON" {
Some("jsonc".into())
} else {
None
}
}
}