File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ mkTest name fp line col ts =
122
122
testCase name $ do
123
123
runSession hlsCommand fullCaps tacticPath $ do
124
124
doc <- openDoc fp " haskell"
125
+ _ <- waitForDiagnostics
125
126
actions <- getCodeActions doc $ pointRange line col
126
127
let titles = mapMaybe codeActionTitle actions
127
128
for_ ts $ \ (f, tc, var) -> do
@@ -136,6 +137,7 @@ goldenTest input line col tc occ =
136
137
testCase (input <> " (golden)" ) $ do
137
138
runSession hlsCommand fullCaps tacticPath $ do
138
139
doc <- openDoc input " haskell"
140
+ _ <- waitForDiagnostics
139
141
actions <- getCodeActions doc $ pointRange line col
140
142
Just (CACodeAction (CodeAction {_command = Just c}))
141
143
<- pure $ find ((== Just (tacticTitle tc occ)) . codeActionTitle) actions
You can’t perform that action at this time.
0 commit comments