Skip to content

Commit bf25f01

Browse files
author
kokobd
committed
use Null as dummy message in waitForDiagnosticsFromSourceWithTimeout
1 parent c89ccfd commit bf25f01

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ import Data.List.Extra (find)
5555
import qualified Data.Set as Set
5656
import qualified Data.Text as T
5757
import Development.IDE (GhcVersion (..), ghcVersion)
58-
import Development.IDE.Plugin.Test (TestRequest (GetFilesOfInterest))
5958
import qualified Language.LSP.Test as Test
6059
import Language.LSP.Types hiding (Reason (..))
6160
import qualified Language.LSP.Types.Capabilities as C
@@ -320,7 +319,7 @@ waitForDiagnosticsFromSourceWithTimeout timeout document source = do
320319
-- Send a dummy message to provoke a response from the server.
321320
-- This guarantees that we have at least one message to
322321
-- process, so message won't block or timeout.
323-
testId <- Test.sendRequest (SCustomMethod "test") (A.toJSON GetFilesOfInterest)
322+
testId <- Test.sendRequest (SCustomMethod "test") A.Null
324323
handleMessages testId
325324
where
326325
matches :: Diagnostic -> Bool

0 commit comments

Comments
 (0)