Require theme directly when creating language
This commit is contained in:
parent
73620dad06
commit
6f99d59d38
4 changed files with 21 additions and 14 deletions
|
@ -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()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue