Skip to content

Commit a617cb2

Browse files
committed
Revert the change in ghcide tests
1 parent 8a8af33 commit a617cb2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ghcide/test/exe/Main.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4937,8 +4937,7 @@ projectCompletionTests =
49374937
"import ALocal"
49384938
]
49394939
compls <- getCompletions doc (Position 1 13)
4940-
--
4941-
item <- getCompletionByLabel "ALocalModule" compls
4940+
let item = head $ filter ((== "ALocalModule") . (^. Lens.label)) compls
49424941
liftIO $ do
49434942
item ^. Lens.label @?= "ALocalModule",
49444943
testSession' "auto complete functions from qualified imports without alias" $ \dir-> do

hls-test-utils/src/Test/Hls/Util.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,4 +456,4 @@ getCompletionByLabel desiredLabel compls =
456456
Just c -> pure c
457457
Nothing -> liftIO . assertFailure $
458458
"Completion with label " <> show desiredLabel
459-
<> " not found in " <> show (fmap (^. L.label) compls)
459+
<> " not found in " <> show (fmap (^. L.label) compls)

0 commit comments

Comments
 (0)