History

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

Changing it from "Open File" to "Active Tab" instead. <img width="800" alt="Screenshot 2025-01-10 at 11 09 54 AM" src="https://github.com/user-attachments/assets/534e94a4-df61-41d4-ad50-514ab9a87e4e" /> Release Notes: - N/A

Danilo Leal committed 1 year ago

Commit cbc403d1 parent 5310e331 file · +10 −8Browse files

Unified · Split

crates/assistant2/src/ui/context_pill.rs+10−8
@@ -145,14 +145,16 @@ impl RenderOnce for ContextPill { · 144 unmodified lines
145 .color(Color::Muted),145 .color(Color::Muted),
146 )146 )
147 .child(147 .child(
148 Label::new(match kind {148 div().px_0p5().child(
149 ContextKind::File => "Open File",149 Label::new(match kind {
150 ContextKind::Thread | ContextKind::Directory | ContextKind::FetchedUrl => {150 ContextKind::File => "Active Tab",
151 "Active"151 ContextKind::Thread
152 }152 | ContextKind::Directory
153 })153 | ContextKind::FetchedUrl => "Active",
154 .size(LabelSize::XSmall)154 })
155 .color(Color::Muted),155 .size(LabelSize::XSmall)
156 .color(Color::Muted),
157 ),
156 )158 )
157 .child(159 .child(
158 Icon::new(IconName::Plus)160 Icon::new(IconName::Plus)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t