mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Fill in DocumentSymbol::detail
This commit is contained in:
parent
abb9bfe44d
commit
4eff8ddb8b
5 changed files with 179 additions and 59 deletions
|
@ -136,7 +136,7 @@ pub fn handle_document_symbol(
|
|||
for symbol in world.analysis().file_structure(file_id) {
|
||||
let doc_symbol = DocumentSymbol {
|
||||
name: symbol.label,
|
||||
detail: Some("".to_string()),
|
||||
detail: symbol.detail,
|
||||
kind: symbol.kind.conv(),
|
||||
deprecated: None,
|
||||
range: symbol.node_range.conv_with(&line_index),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue