File tree 1 file changed +1
-2
lines changed
crates/rust-analyzer/src/handlers
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1826,6 +1826,7 @@ pub(crate) fn handle_call_hierarchy_outgoing(
1826
1826
let doc = TextDocumentIdentifier :: new ( item. uri ) ;
1827
1827
let frange = from_proto:: file_range ( & snap, & doc, item. selection_range ) ?;
1828
1828
let fpos = FilePosition { file_id : frange. file_id , offset : frange. range . start ( ) } ;
1829
+ let line_index = snap. file_line_index ( fpos. file_id ) ?;
1829
1830
1830
1831
let config = snap. config . call_hierarchy ( ) ;
1831
1832
let call_items = match snap. analysis . outgoing_calls ( config, fpos) ? {
@@ -1836,8 +1837,6 @@ pub(crate) fn handle_call_hierarchy_outgoing(
1836
1837
let mut res = vec ! [ ] ;
1837
1838
1838
1839
for call_item in call_items. into_iter ( ) {
1839
- let file_id = call_item. target . file_id ;
1840
- let line_index = snap. file_line_index ( file_id) ?;
1841
1840
let item = to_proto:: call_hierarchy_item ( & snap, call_item. target ) ?;
1842
1841
res. push ( CallHierarchyOutgoingCall {
1843
1842
to : item,
You can’t perform that action at this time.
0 commit comments