We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1e146b commit 4018b68Copy full SHA for 4018b68
ghcide/src/Development/IDE/Core/Rules.hs
@@ -839,9 +839,10 @@ instance IsIdeGlobal DisplayTHWarning
839
840
getModSummaryRule :: Rules ()
841
getModSummaryRule = do
842
- env <- lspEnv <$> getShakeExtrasRules
843
- displayItOnce <- liftIO $ once $ LSP.runLspT (fromJust env) displayTHWarning
844
- addIdeGlobal (DisplayTHWarning displayItOnce)
+ menv <- lspEnv <$> getShakeExtrasRules
+ forM_ menv $ \env -> do
+ displayItOnce <- liftIO $ once $ LSP.runLspT env displayTHWarning
845
+ addIdeGlobal (DisplayTHWarning displayItOnce)
846
847
defineEarlyCutoff $ Rule $ \GetModSummary f -> do
848
session' <- hscEnv <$> use_ GhcSession f
0 commit comments