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(
873873 params : lsp_ext:: HoverParams ,
874874) -> Result < Option < lsp_ext:: Hover > > {
875875 let _p = profile:: span ( "handle_hover" ) ;
876- let file_id = from_proto:: file_id ( & snap, & params. text_document . uri ) ?;
877-
878876 let range = match params. position {
879877 PositionOrRange :: Position ( position) => Range :: new ( position, position) ,
880878 PositionOrRange :: Range ( range) => range,
@@ -886,7 +884,7 @@ pub(crate) fn handle_hover(
886884 Some ( info) => info,
887885 } ;
888886
889- let line_index = snap. file_line_index ( file_id) ?;
887+ let line_index = snap. file_line_index ( file_range . file_id ) ?;
890888 let range = to_proto:: range ( & line_index, info. range ) ;
891889 let hover = lsp_ext:: Hover {
892890 hover : lsp_types:: Hover {
You can’t perform that action at this time.
0 commit comments