projects
/
lsp-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ignoreLogNotifications config option
[lsp-test.git]
/
test
/
Test.hs
diff --git
a/test/Test.hs
b/test/Test.hs
index a0d4d0d4c210472ab2b62fdf4d6c356e6a5de917..dc770d9205efc21e22147660380470316ed371a1 100644
(file)
--- a/
test/Test.hs
+++ b/
test/Test.hs
@@
-333,6
+333,12
@@
main = hspec $ do
pred _ = False
void $ satisfy pred
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
mkRange sl sc el ec = Range (Position sl sc) (Position el ec)
didChangeCaps :: ClientCapabilities