File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -873,8 +873,6 @@ pub(crate) fn handle_hover(
873
873
params : lsp_ext:: HoverParams ,
874
874
) -> Result < Option < lsp_ext:: Hover > > {
875
875
let _p = profile:: span ( "handle_hover" ) ;
876
- let file_id = from_proto:: file_id ( & snap, & params. text_document . uri ) ?;
877
-
878
876
let range = match params. position {
879
877
PositionOrRange :: Position ( position) => Range :: new ( position, position) ,
880
878
PositionOrRange :: Range ( range) => range,
@@ -886,7 +884,7 @@ pub(crate) fn handle_hover(
886
884
Some ( info) => info,
887
885
} ;
888
886
889
- let line_index = snap. file_line_index ( file_id) ?;
887
+ let line_index = snap. file_line_index ( file_range . file_id ) ?;
890
888
let range = to_proto:: range ( & line_index, info. range ) ;
891
889
let hover = lsp_ext:: Hover {
892
890
hover : lsp_types:: Hover {
You can’t perform that action at this time.
0 commit comments