Reattempt Node installation if the installation itself errors
This also makes us a bit more aggressive about reinstalling Node
This commit is contained in:
parent
b8690ec1d1
commit
46101bf110
4 changed files with 14 additions and 38 deletions
|
@ -338,9 +338,9 @@ impl Copilot {
|
|||
let (server, fake_server) =
|
||||
LanguageServer::fake("copilot".into(), Default::default(), cx.to_async());
|
||||
let http = util::http::FakeHttpClient::create(|_| async { unreachable!() });
|
||||
let this = cx.add_model(|cx| Self {
|
||||
let this = cx.add_model(|_| Self {
|
||||
http: http.clone(),
|
||||
node_runtime: NodeRuntime::instance(http, cx.background().clone()),
|
||||
node_runtime: NodeRuntime::instance(http),
|
||||
server: CopilotServer::Running(RunningCopilotServer {
|
||||
lsp: Arc::new(server),
|
||||
sign_in_status: SignInStatus::Authorized,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue