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.

Use a better message for the InvalidBufferView (#36770)

Kirill Bulatov4560d1ec58af
diff --git a/crates/workspace/src/invalid_buffer_view.rs b/crates/workspace/src/invalid_buffer_view.rs
index e2361d59671..b017373474c 100644
--- a/crates/workspace/src/invalid_buffer_view.rs
+++ b/crates/workspace/src/invalid_buffer_view.rs
@@ -88,7 +88,7 @@ impl Render for InvalidBufferView {
v_flex()
.justify_center()
.gap_2()
- .child("Cannot display the file contents in Zed")
+ .child(h_flex().justify_center().child("Unsupported file type"))
.when(self.is_local, |contents| {
contents.child(
h_flex().justify_center().child(