Skip to content

Commit fb9885c

Browse files
committed
Crazy attempt #2
1 parent b210ed5 commit fb9885c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ghcide/test/exe/TestUtils.hs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ import LogType
4949

5050
-- | Wait for the next progress begin step
5151
waitForProgressBegin :: Session ()
52-
waitForProgressBegin = skipManyTill anyMessage $ satisfyMaybe $ \case
53-
FromServerMess SMethod_Progress (TNotificationMessage _ _ (ProgressParams _ v)) | Lens.is _workDoneProgressBegin v -> Just ()
54-
_ -> Nothing
52+
waitForProgressBegin = do
53+
setIgnoringProgressNotifications False
54+
skipManyTill anyMessage $ satisfyMaybe $ \case
55+
FromServerMess SMethod_Progress (TNotificationMessage _ _ (ProgressParams _ v)) | Lens.is _workDoneProgressBegin v -> Just ()
56+
_ -> Nothing
5557

5658
-- | Wait for the first progress end step
5759
-- Also implemented in hls-test-utils Test.Hls
@@ -138,7 +140,7 @@ getConfigFromEnv = do
138140
timeoutOverride <- fmap read <$> getEnv "LSP_TIMEOUT"
139141
return defaultConfig
140142
{ messageTimeout = fromMaybe (messageTimeout defaultConfig) timeoutOverride
141-
, ignoreProgressNotifications = False
143+
--, ignoreProgressNotifications = False
142144
, logColor
143145
}
144146
where

0 commit comments

Comments
 (0)