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
145145 .color(Color::Muted),
146146 )
147147 .child(
148− Label::new(match kind {
149− ContextKind::File => "Open File",
150− ContextKind::Thread | ContextKind::Directory | ContextKind::FetchedUrl => {
151− "Active"
152− }
153− })
154− .size(LabelSize::XSmall)
155− .color(Color::Muted),
148+ div().px_0p5().child(
149+ Label::new(match kind {
150+ ContextKind::File => "Active Tab",
151+ ContextKind::Thread
152+ | ContextKind::Directory
153+ | ContextKind::FetchedUrl => "Active",
154+ })
155+ .size(LabelSize::XSmall)
156+ .color(Color::Muted),
157+ ),
156158 )
157159 .child(
158160 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