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 run empty code submission (#14598)

Kyle Kelleyf612c40bee88
diff --git a/crates/repl/src/session.rs b/crates/repl/src/session.rs
index cedd624d2c3..c43a3d9ae33 100644
--- a/crates/repl/src/session.rs
+++ b/crates/repl/src/session.rs
@@ -284,6 +284,10 @@ impl Session {
return;
};
+ if code.is_empty() {
+ return;
+ }
+
let execute_request = ExecuteRequest {
code: code.to_string(),
..ExecuteRequest::default()