Fix association of 'json' lsp language id with JSON language
This commit is contained in:
parent
dd554c19df
commit
2a478462b6
4 changed files with 26 additions and 14 deletions
|
@ -94,10 +94,6 @@ pub fn initialization_options() -> Option<String> {
|
|||
}
|
||||
|
||||
#[export]
|
||||
pub fn id_for_language(name: String) -> Option<String> {
|
||||
if name == "JSON" {
|
||||
Some("jsonc".into())
|
||||
} else {
|
||||
None
|
||||
}
|
||||
pub fn language_ids() -> Vec<(String, String)> {
|
||||
vec![("JSON".into(), "jsonc".into())]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue