agent: Show line numbers of symbols when using @symbol
(#34004)
Closes #ISSUE Release Notes: - N/A
This commit is contained in:
parent
30a441b714
commit
018dbfba09
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue