Skip to content

Commit 018dbfb

Browse files
authored
agent: Show line numbers of symbols when using @symbol (#34004)
Closes #ISSUE Release Notes: - N/A
1 parent 30a441b commit 018dbfb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/agent_ui/src/context_picker/completion_provider.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,7 @@ impl ContextPickerCompletionProvider {
686686
let mut label = CodeLabel::plain(symbol.name.clone(), None);
687687
label.push_str(" ", None);
688688
label.push_str(&file_name, comment_id);
689+
label.push_str(&format!(" L{}", symbol.range.start.0.row + 1), comment_id);
689690

690691
let new_text = format!("{} ", MentionLink::for_symbol(&symbol.name, &full_path));
691692
let new_text_len = new_text.len();

0 commit comments

Comments
 (0)