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.

Prevent text from wrapping in code actions menu (#9178)

Antonio Scandurraceadb39c3875
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index fe5e81177ab..e747d0d2865 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -1196,6 +1196,7 @@ impl CodeActionsMenu {
}
}),
)
+ .whitespace_nowrap()
// TASK: It would be good to make lsp_action.title a SharedString to avoid allocating here.
.child(SharedString::from(action.lsp_action.title.clone()))
})