Use the 'jsonc' language id for all JSON files
This way, comments are allowed by the language server.
This commit is contained in:
parent
3a28f09979
commit
f52050a9ec
3 changed files with 29 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue