File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
ghcide/src/Development/IDE Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -328,8 +328,7 @@ getLocatedImportsRule recorder =
328328 return $ if itExists then Just nfp' else Nothing
329329 | Just tt <- HM. lookup (TargetModule modName) targets = do
330330 -- reuse the existing NormalizedFilePath in order to maximize sharing
331- let ttmap = HM. mapWithKey const (HashSet. toMap tt)
332- nfp' = HM. lookupDefault nfp nfp ttmap
331+ let nfp' = nfp
333332 itExists <- getFileExists nfp'
334333 return $ if itExists then Just nfp' else Nothing
335334 | otherwise = do
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import GHC.Generics
2121-- | A mapping of module name to known files
2222data KnownTargets = KnownTargets
2323 { targetMap :: ! (HashMap Target (HashSet NormalizedFilePath ))
24- -- | 'normalisingMap' is a cached copy of `HMap.mapKey const targetMap`
24+ -- | 'normalisingMap' is a cached copy of `HMap.mapWithKey const targetMap`
2525 --
2626 -- At startup 'GetLocatedImports' is called on all known files. Say you have 10000
2727 -- modules in your project then this leads to 10000 calls to 'GetLocatedImports'
You can’t perform that action at this time.
0 commit comments