We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef0e9fd commit bfa8e85Copy full SHA for bfa8e85
ghcide/src/Development/IDE/Core/Rules.hs
@@ -732,10 +732,12 @@ getModIfaceFromDiskAndIndexRule =
732
hie_loc = ml_hie_file $ ms_location ms
733
hash <- liftIO $ getFileHash hie_loc
734
mrow <- liftIO $ HieDb.lookupHieFileFromSource hiedb (fromNormalizedFilePath f)
735
+ hie_loc' <- liftIO $ canonicalizePath $ HieDb.hieModuleHieFile mrow
736
case mrow of
737
Just row
738
| hash == HieDb.modInfoHash (HieDb.hieModInfo row)
- , hie_loc == HieDb.hieModuleHieFile row -> do
739
+ && hie_loc == hie_loc'
740
+ -> do
741
-- All good, the db has indexed the file
742
when (coerce $ ideTesting se) $ liftIO $ mRunLspT (lspEnv se) $
743
LSP.sendNotification (SCustomMethod "ghcide/reference/ready") $
0 commit comments