use senRequest instead of request_ in executeCommand to avoid gobbling up messages
[lsp-test.git] / 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