Skip to content

Commit c89ccfd

Browse files
author
kokobd
committed
fix waitForDiagnosticsFromSourceWithTimeout
1 parent ef84255 commit c89ccfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hls-test-utils/src/Test/Hls/Util.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ waitForDiagnosticsFromSourceWithTimeout timeout document source = do
333333
(List diags) = diagsNot ^. L.params . L.diagnostics
334334
res = filter matches diags
335335
if fileUri == document ^. L.uri && not (null res)
336-
then return diags else handleMessages testId
336+
then return res else handleMessages testId
337337
handleCustomMethodResponse testId = do
338338
_ <- Test.responseForId (SCustomMethod "test") testId
339339
pure []

0 commit comments

Comments
 (0)