File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import Data.Bool (bool)
1111import Data.List (isSuffixOf )
1212import Data.Maybe (fromMaybe )
1313import Data.Proxy (Proxy (.. ))
14- import Development.IDE.GHC.Compat (GhcVersion (.. ))
14+ import Development.IDE.GHC.Compat (GhcVersion (.. ), ghcVersion )
1515import Language.LSP.Protocol.Message (TCustomMessage (NotMess ),
1616 TNotificationMessage (.. ))
1717import Language.LSP.Protocol.Types (Definition (.. ),
@@ -138,7 +138,9 @@ transitiveDependencyTest = testSessionWithExtraFiles "dependency" "goto transiti
138138 hashableDefs <- getDefinitions asyncDoc (Position 246 11 )
139139 -- The location of the definition of Hashable in
140140 -- Data.Hashable.Class
141- let expRange = Range (Position 198 14 ) (Position 198 22 )
141+ let expRange = if ghcVersion >= GHC90
142+ then Range (Position 198 14 ) (Position 198 22 )
143+ else Range (Position 198 0 ) (Position 235 31 )
142144 case hashableDefs of
143145 InL (Definition (InR [Location uri actualRange])) ->
144146 liftIO $ do
You can’t perform that action at this time.
0 commit comments