We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f570d5f commit 222b050Copy full SHA for 222b050
ghcide/src/Development/IDE/Core/Rules.hs
@@ -799,6 +799,11 @@ ghcSessionDepsDefinition fullModSummary GhcSessionDepsConfig{..} env file = do
799
#endif
800
session' <- liftIO $ mergeEnvs hsc moduleNode inLoadOrder depSessions
801
802
+ -- Here we avoid a call to to `newHscEnvEqWithImportPaths`, which creates a new
803
+ -- ExportsMap when it is called. We only need to create the ExportsMap once per
804
+ -- session, while `ghcSessionDepsDefinition` will be called for each file we need
805
+ -- to compile. `updateHscEnvEq` will refresh the HscEnv (session') and also
806
+ -- generate a new Unique.
807
Just <$> liftIO (updateHscEnvEq env session')
808
809
-- | Load a iface from disk, or generate it if there isn't one or it is out of date
0 commit comments