agent: Show line numbers of symbols when using @symbol (#34004)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Bennet Bo Fenner 2025-07-07 12:53:59 +02:00 committed by GitHub
parent 30a441b714
commit 018dbfba09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -686,6 +686,7 @@ impl ContextPickerCompletionProvider {
let mut label = CodeLabel::plain(symbol.name.clone(), None);
label.push_str(" ", None);
label.push_str(&file_name, comment_id);
label.push_str(&format!(" L{}", symbol.range.start.0.row + 1), comment_id);
let new_text = format!("{} ", MentionLink::for_symbol(&symbol.name, &full_path));
let new_text_len = new_text.len();