Reattempt Node installation if the installation itself errors

This also makes us a bit more aggressive about reinstalling Node
This commit is contained in:
Julia 2023-07-28 15:24:40 -04:00
parent b8690ec1d1
commit 46101bf110
4 changed files with 14 additions and 38 deletions

View file

@ -136,7 +136,7 @@ fn main() {
languages.set_executor(cx.background().clone());
languages.set_language_server_download_dir(paths::LANGUAGES_DIR.clone());
let languages = Arc::new(languages);
let node_runtime = NodeRuntime::instance(http.clone(), cx.background().to_owned());
let node_runtime = NodeRuntime::instance(http.clone());
languages::init(languages.clone(), node_runtime.clone());
let user_store = cx.add_model(|cx| UserStore::new(client.clone(), http.clone(), cx));