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(
489489 tags. push ( SymbolTag :: DEPRECATED )
490490 } ;
491491
492- #[ allow( deprecated) ]
493492 let doc_symbol = lsp_types:: DocumentSymbol {
494493 name : symbol. label ,
495494 detail : symbol. detail ,
496495 kind : to_proto:: structure_node_kind ( symbol. kind ) ,
497496 tags : Some ( tags) ,
497+ #[ allow( deprecated) ]
498498 deprecated : Some ( symbol. deprecated ) ,
499499 range : to_proto:: range ( & line_index, symbol. node_range ) ,
500500 selection_range : to_proto:: range ( & line_index, symbol. navigation_range ) ,
@@ -539,18 +539,11 @@ pub(crate) fn handle_document_symbol(
539539 url : & Url ,
540540 res : & mut Vec < SymbolInformation > ,
541541 ) {
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) ]
550542 res. push ( SymbolInformation {
551543 name : symbol. name . clone ( ) ,
552544 kind : symbol. kind ,
553- tags : Some ( tags) ,
545+ tags : symbol. tags . clone ( ) ,
546+ #[ allow( deprecated) ]
554547 deprecated : symbol. deprecated ,
555548 location : Location :: new ( url. clone ( ) , symbol. range ) ,
556549 container_name,
You can’t perform that action at this time.
0 commit comments