@@ -28,11 +28,11 @@ tests =
28
28
runSession hlsCommand progressCaps " test/testdata" $ do
29
29
let path = " hlint" </> " ApplyRefact2.hs"
30
30
_ <- openDoc path " haskell"
31
- expectProgressReports [pack (" Setting up hlint (for " ++ path ++ " )" ), " Processing" ]
31
+ expectProgressReports [pack (" Setting up hlint (for " ++ path ++ " )" ), " Processing" , " Indexing " ]
32
32
, testCase " eval plugin sends progress reports" $
33
33
runSession hlsCommand progressCaps " plugins/hls-eval-plugin/test/testdata" $ do
34
34
doc <- openDoc " T1.hs" " haskell"
35
- expectProgressReports [" Setting up testdata (for T1.hs)" , " Processing" ]
35
+ expectProgressReports [" Setting up testdata (for T1.hs)" , " Processing" , " Indexing " ]
36
36
[evalLens] <- getCodeLenses doc
37
37
let cmd = evalLens ^?! L. command . _Just
38
38
_ <- sendRequest SWorkspaceExecuteCommand $ ExecuteCommandParams Nothing (cmd ^. L. command) (decode $ encode $ fromJust $ cmd ^. L. arguments)
@@ -41,14 +41,14 @@ tests =
41
41
runSession hlsCommand progressCaps " test/testdata/format" $ do
42
42
sendNotification SWorkspaceDidChangeConfiguration (DidChangeConfigurationParams (formatLspConfig " ormolu" ))
43
43
doc <- openDoc " Format.hs" " haskell"
44
- expectProgressReports [" Setting up testdata (for Format.hs)" , " Processing" ]
44
+ expectProgressReports [" Setting up testdata (for Format.hs)" , " Processing" , " Indexing " ]
45
45
_ <- sendRequest STextDocumentFormatting $ DocumentFormattingParams Nothing doc (FormattingOptions 2 True Nothing Nothing Nothing )
46
46
expectProgressReports [" Formatting Format.hs" ]
47
47
, testCase " fourmolu plugin sends progress notifications" $ do
48
48
runSession hlsCommand progressCaps " test/testdata/format" $ do
49
49
sendNotification SWorkspaceDidChangeConfiguration (DidChangeConfigurationParams (formatLspConfig " fourmolu" ))
50
50
doc <- openDoc " Format.hs" " haskell"
51
- expectProgressReports [" Setting up testdata (for Format.hs)" , " Processing" ]
51
+ expectProgressReports [" Setting up testdata (for Format.hs)" , " Processing" , " Indexing " ]
52
52
_ <- sendRequest STextDocumentFormatting $ DocumentFormattingParams Nothing doc (FormattingOptions 2 True Nothing Nothing Nothing )
53
53
expectProgressReports [" Formatting Format.hs" ]
54
54
, ignoreTestBecause " no liquid Haskell support" $
@@ -90,7 +90,6 @@ expectProgressReports xs = expectProgressReports' [] xs
90
90
CreateM msg ->
91
91
expectProgressReports' (token msg : tokens) expectedTitles
92
92
BeginM msg -> do
93
- liftIO $ title msg `expectElem` (" Indexing references from:" : xs)
94
93
liftIO $ token msg `expectElem` tokens
95
94
expectProgressReports' tokens (delete (title msg) expectedTitles)
96
95
ProgressM msg -> do
0 commit comments