File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -799,6 +799,11 @@ ghcSessionDepsDefinition fullModSummary GhcSessionDepsConfig{..} env file = do
799
799
#endif
800
800
session' <- liftIO $ mergeEnvs hsc moduleNode inLoadOrder depSessions
801
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.
802
807
Just <$> liftIO (updateHscEnvEq env session')
803
808
804
809
-- | Load a iface from disk, or generate it if there isn't one or it is out of date
You can’t perform that action at this time.
0 commit comments