Require theme directly when creating language

This commit is contained in:
Isaac Clayton 2022-07-08 16:08:40 +02:00
parent 73620dad06
commit 6f99d59d38
4 changed files with 21 additions and 14 deletions

View file

@ -27,13 +27,8 @@ pub fn fetch_latest_server_version() -> Option<String> {
versions: Vec<String>,
}
// TODO: command returns error code
let output =
command("npm info vscode-json-languageserver --json").expect("could not run command");
// if !output.is_ok() {
// return None;
// }
let output = String::from_utf8(output).unwrap();
let mut info: NpmInfo = serde_json::from_str(&output).ok()?;