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.

assistant2: Change suggested file context pill label (#22967)

Danilo Lealcbc403d3f347
diff --git a/crates/assistant2/src/ui/context_pill.rs b/crates/assistant2/src/ui/context_pill.rs
index 6e5de117288..3a5b81d4a9a 100644
--- a/crates/assistant2/src/ui/context_pill.rs
+++ b/crates/assistant2/src/ui/context_pill.rs
@@ -145,14 +145,16 @@ impl RenderOnce for ContextPill {
.color(Color::Muted),
)
.child(
- Label::new(match kind {
- ContextKind::File => "Open File",
- ContextKind::Thread | ContextKind::Directory | ContextKind::FetchedUrl => {
- "Active"
- }
- })
- .size(LabelSize::XSmall)
- .color(Color::Muted),
+ div().px_0p5().child(
+ Label::new(match kind {
+ ContextKind::File => "Active Tab",
+ ContextKind::Thread
+ | ContextKind::Directory
+ | ContextKind::FetchedUrl => "Active",
+ })
+ .size(LabelSize::XSmall)
+ .color(Color::Muted),
+ ),
)
.child(
Icon::new(IconName::Plus)