use senRequest instead of request_ in executeCommand to avoid gobbling up messages
authorZubin Duggal <zubin@cmi.ac.in>
Mon, 5 Oct 2020 08:12:33 +0000 (13:42 +0530)
committerLuke Lau <luke_lau@icloud.com>
Fri, 9 Oct 2020 12:56:55 +0000 (13:56 +0100)
src/Language/Haskell/LSP/Test.hs

index 6427dd2601ab48bc967007a54c6037e6d98a1470..1ed07d5e06211ed583251cd066271385d2310565 100644 (file)
@@ -543,7 +543,7 @@ executeCommand :: Command -> Session ()
 executeCommand cmd = do
   let args = decode $ encode $ fromJust $ cmd ^. arguments
       execParams = ExecuteCommandParams Nothing (cmd ^. command) args
-  request_ SWorkspaceExecuteCommand execParams
+  void $ sendRequest SWorkspaceExecuteCommand execParams
 
 -- | Executes a code action.
 -- Matching with the specification, if a code action