File tree 2 files changed +2
-3
lines changed
hls-test-utils/src/Test/Hls
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4937,8 +4937,7 @@ projectCompletionTests =
4937
4937
" import ALocal"
4938
4938
]
4939
4939
compls <- getCompletions doc (Position 1 13 )
4940
- --
4941
- item <- getCompletionByLabel " ALocalModule" compls
4940
+ let item = head $ filter ((== " ALocalModule" ) . (^. Lens. label)) compls
4942
4941
liftIO $ do
4943
4942
item ^. Lens. label @?= " ALocalModule" ,
4944
4943
testSession' " auto complete functions from qualified imports without alias" $ \ dir-> do
Original file line number Diff line number Diff line change @@ -456,4 +456,4 @@ getCompletionByLabel desiredLabel compls =
456
456
Just c -> pure c
457
457
Nothing -> liftIO . assertFailure $
458
458
" Completion with label " <> show desiredLabel
459
- <> " not found in " <> show (fmap (^. L. label) compls)
459
+ <> " not found in " <> show (fmap (^. L. label) compls)
You can’t perform that action at this time.
0 commit comments