Add ignoreLogNotifications config option
[lsp-test.git] / test / Test.hs
index a0d4d0d4c210472ab2b62fdf4d6c356e6a5de917..dc770d9205efc21e22147660380470316ed371a1 100644 (file)
@@ -333,6 +333,12 @@ main = hspec $ do
           pred _ = False
       void $ satisfy pred
 
+  describe "ignoreLogNotifications" $
+    it "works" $
+      runSessionWithConfig (defaultConfig { ignoreLogNotifications = True }) "hie"  fullCaps "test/data" $ do
+        openDoc "Format.hs" "haskell"
+        void publishDiagnosticsNotification
+
 mkRange sl sc el ec = Range (Position sl sc) (Position el ec)
 
 didChangeCaps :: ClientCapabilities