File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
crates/rust-analyzer/src/handlers Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -489,12 +489,12 @@ pub(crate) fn handle_document_symbol(
489
489
tags. push ( SymbolTag :: DEPRECATED )
490
490
} ;
491
491
492
- #[ allow( deprecated) ]
493
492
let doc_symbol = lsp_types:: DocumentSymbol {
494
493
name : symbol. label ,
495
494
detail : symbol. detail ,
496
495
kind : to_proto:: structure_node_kind ( symbol. kind ) ,
497
496
tags : Some ( tags) ,
497
+ #[ allow( deprecated) ]
498
498
deprecated : Some ( symbol. deprecated ) ,
499
499
range : to_proto:: range ( & line_index, symbol. node_range ) ,
500
500
selection_range : to_proto:: range ( & line_index, symbol. navigation_range ) ,
@@ -539,18 +539,11 @@ pub(crate) fn handle_document_symbol(
539
539
url : & Url ,
540
540
res : & mut Vec < SymbolInformation > ,
541
541
) {
542
- let mut tags = Vec :: new ( ) ;
543
-
544
- #[ allow( deprecated) ]
545
- if let Some ( true ) = symbol. deprecated {
546
- tags. push ( SymbolTag :: DEPRECATED )
547
- }
548
-
549
- #[ allow( deprecated) ]
550
542
res. push ( SymbolInformation {
551
543
name : symbol. name . clone ( ) ,
552
544
kind : symbol. kind ,
553
- tags : Some ( tags) ,
545
+ tags : symbol. tags . clone ( ) ,
546
+ #[ allow( deprecated) ]
554
547
deprecated : symbol. deprecated ,
555
548
location : Location :: new ( url. clone ( ) , symbol. range ) ,
556
549
container_name,
You can’t perform that action at this time.
0 commit comments