on master help sign in
Pass shake-profiling option when not using --lsp (#385)
commitcb2828795d4ac79607c78d8e9f04327bab5c0451 authorMatthew Pickering <matthewtpickering@gmail.com> dateTue 28 Jan 2020, 08:04 (7 years ago) parent956e11d
1 file changed+5−1
exe/Main.hs+5−1
exe/Main.hs+5−1
@@ -130,7 +130,11 @@ main = do
130130 let grab file = fromMaybe (head sessions) $ do
131131 cradle <- Map.lookup file filesToCradles
132132 Map.lookup cradle cradlesToSessions
133− ide <- initialise def mainRule (pure $ IdInt 0) (showEvent lock) (logger Info) (defaultIdeOptions $ return $ return . grab) vfs
133+
134+ let options =
135+ (defaultIdeOptions $ return $ return . grab)
136+ { optShakeProfiling = argsShakeProfiling }
137+ ide <- initialise def mainRule (pure $ IdInt 0) (showEvent lock) (logger Info) options vfs
134138
135139 putStrLn "\nStep 6/6: Type checking the files"
136140 setFilesOfInterest ide $ Set.fromList $ map toNormalizedFilePath files