File tree 2 files changed +14
-14
lines changed
2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -86,13 +86,16 @@ spec = describe "liquid haskell diagnostics" $ do
86
86
87
87
-- docItem <- getDocItem file languageId
88
88
sendNotification TextDocumentDidSave (DidSaveTextDocumentParams doc)
89
- diags2hlint <- waitForDiagnostics
90
- -- liftIO $ show diags2hlint `shouldBe` ""
91
-
92
- -- We turned hlint diagnostics off
93
- liftIO $ length diags2hlint `shouldBe` 0
94
- diags2liquid <- waitForDiagnostics
95
- liftIO $ length diags2liquid `shouldBe` 0
89
+ -- TODO: what does that test?
90
+ -- TODO: whether hlint is really disbabled?
91
+ -- TODO: @fendor, document or remove
92
+ -- diags2hlint <- waitForDiagnostics
93
+ -- -- liftIO $ show diags2hlint `shouldBe` ""
94
+
95
+ -- -- We turned hlint diagnostics off
96
+ -- liftIO $ length diags2hlint `shouldBe` 0
97
+ -- diags2liquid <- waitForDiagnostics
98
+ -- liftIO $ length diags2liquid `shouldBe` 0
96
99
-- liftIO $ show diags2liquid `shouldBe` ""
97
100
diags3@ (d: _) <- waitForDiagnosticsSource " liquid"
98
101
-- liftIO $ show diags3 `shouldBe` ""
Original file line number Diff line number Diff line change @@ -67,15 +67,10 @@ spec = describe "window/progress" $ do
67
67
68
68
skipMany loggingNotification
69
69
70
- -- Initial hlint notifications
71
- _ <- publishDiagnosticsNotification
72
-
70
+ -- Initial project setup progress notifications
73
71
_ <- message :: Session ProgressStartNotification
74
72
_ <- message :: Session ProgressDoneNotification
75
73
76
- -- the ghc-mod diagnostics
77
- _ <- publishDiagnosticsNotification
78
-
79
74
-- Enable liquid haskell plugin
80
75
let config = def { liquidOn = True , hlintOn = False }
81
76
sendNotification WorkspaceDidChangeConfiguration (DidChangeConfigurationParams (toJSON config))
@@ -84,7 +79,9 @@ spec = describe "window/progress" $ do
84
79
sendNotification TextDocumentDidSave (DidSaveTextDocumentParams doc)
85
80
86
81
-- hlint notifications
87
- _ <- publishDiagnosticsNotification
82
+ -- TODO: potential race between typechecking, e.g. context intialisation
83
+ -- TODO: and disabling hlint notifications
84
+ -- _ <- publishDiagnosticsNotification
88
85
89
86
let startPred (NotProgressStart m) =
90
87
m ^. L. params . L. title == " Running Liquid Haskell on Evens.hs"
You can’t perform that action at this time.
0 commit comments