@@ -257,13 +257,13 @@ spec = describe "completions" $ do
257
257
let te = TextEdit (Range (Position 5 7 ) (Position 5 24 )) " even `filte"
258
258
_ <- applyEdit doc te
259
259
260
- compls <- getCompletions doc (Position 5 17 )
260
+ compls <- getCompletions doc (Position 5 18 )
261
261
let item = head $ filter ((== " filter" ) . (^. label)) compls
262
262
liftIO $ do
263
263
item ^. label `shouldBe` " filter"
264
264
item ^. kind `shouldBe` Just CiFunction
265
265
item ^. insertTextFormat `shouldBe` Just Snippet
266
- item ^. insertText `shouldBe` Just " ` filter`"
266
+ item ^. insertText `shouldBe` Just " filter`"
267
267
268
268
it " work for infix functions in backticks" $ runSession hieCommand fullCaps " test/testdata/completion" $ do
269
269
doc <- openDoc " Completion.hs" " haskell"
@@ -272,13 +272,13 @@ spec = describe "completions" $ do
272
272
let te = TextEdit (Range (Position 5 7 ) (Position 5 24 )) " even `filte`"
273
273
_ <- applyEdit doc te
274
274
275
- compls <- getCompletions doc (Position 5 17 )
275
+ compls <- getCompletions doc (Position 5 18 )
276
276
let item = head $ filter ((== " filter" ) . (^. label)) compls
277
277
liftIO $ do
278
278
item ^. label `shouldBe` " filter"
279
279
item ^. kind `shouldBe` Just CiFunction
280
280
item ^. insertTextFormat `shouldBe` Just Snippet
281
- item ^. insertText `shouldBe` Just " ` filter` "
281
+ item ^. insertText `shouldBe` Just " filter"
282
282
283
283
it " work for qualified infix functions" $ runSession hieCommand fullCaps " test/testdata/completion" $ do
284
284
doc <- openDoc " Completion.hs" " haskell"
@@ -287,13 +287,13 @@ spec = describe "completions" $ do
287
287
let te = TextEdit (Range (Position 5 7 ) (Position 5 24 )) " \"\" `Data.List.interspe"
288
288
_ <- applyEdit doc te
289
289
290
- compls <- getCompletions doc (Position 5 34 )
290
+ compls <- getCompletions doc (Position 5 29 )
291
291
let item = head $ filter ((== " intersperse" ) . (^. label)) compls
292
292
liftIO $ do
293
293
item ^. label `shouldBe` " intersperse"
294
294
item ^. kind `shouldBe` Just CiFunction
295
295
item ^. insertTextFormat `shouldBe` Just Snippet
296
- item ^. insertText `shouldBe` Just " `Data.List. intersperse`"
296
+ item ^. insertText `shouldBe` Just " intersperse`"
297
297
298
298
it " work for qualified infix functions in backticks" $ runSession hieCommand fullCaps " test/testdata/completion" $ do
299
299
doc <- openDoc " Completion.hs" " haskell"
@@ -303,13 +303,13 @@ spec = describe "completions" $ do
303
303
_ <- applyEdit doc te
304
304
305
305
306
- compls <- getCompletions doc (Position 5 34 )
306
+ compls <- getCompletions doc (Position 5 29 )
307
307
let item = head $ filter ((== " intersperse" ) . (^. label)) compls
308
308
liftIO $ do
309
309
item ^. label `shouldBe` " intersperse"
310
310
item ^. kind `shouldBe` Just CiFunction
311
311
item ^. insertTextFormat `shouldBe` Just Snippet
312
- item ^. insertText `shouldBe` Just " `Data.List. intersperse` "
312
+ item ^. insertText `shouldBe` Just " intersperse"
313
313
314
314
it " respects lsp configuration" $ runSession hieCommand fullCaps " test/testdata/completion" $ do
315
315
doc <- openDoc " Completion.hs" " haskell"
0 commit comments