Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

repl: Don't send KernelInfoRequest on launch (#14608)

Kyle Kelley9c43450fefd6
diff --git a/crates/repl/src/session.rs b/crates/repl/src/session.rs
index c43a3d9ae33..fd67a34dc1f 100644
--- a/crates/repl/src/session.rs
+++ b/crates/repl/src/session.rs
@@ -16,8 +16,7 @@ use gpui::{
use language::Point;
use project::Fs;
use runtimelib::{
- ExecuteRequest, InterruptRequest, JupyterMessage, JupyterMessageContent, KernelInfoRequest,
- ShutdownRequest,
+ ExecuteRequest, InterruptRequest, JupyterMessage, JupyterMessageContent, ShutdownRequest,
};
use settings::Settings as _;
use std::{ops::Range, sync::Arc, time::Duration};
@@ -173,24 +172,6 @@ impl Session {
.ok();
}
});
-
- // For some reason sending a kernel info request will brick the ark (R) kernel.
- // Note that Deno and Python do not have this issue.
- if this.kernel_specification.name == "ark" {
- return;
- }
-
- // Get kernel info after (possibly) letting the kernel start
- cx.spawn(|this, mut cx| async move {
- cx.background_executor()
- .timer(Duration::from_millis(120))
- .await;
- this.update(&mut cx, |this, _cx| {
- this.send(KernelInfoRequest {}.into(), _cx).ok();
- })
- .ok();
- })
- .detach();
})
.ok();
}