@@ -861,7 +861,7 @@ addExtensionTests = testGroup "add language extension actions"
861
861
executeCodeAction action
862
862
contentAfterAction <- documentContents doc
863
863
liftIO $ expectedContents @=? contentAfterAction
864
-
864
+
865
865
866
866
insertNewDefinitionTests :: TestTree
867
867
insertNewDefinitionTests = testGroup " insert new definition actions"
@@ -1360,7 +1360,7 @@ completionTests
1360
1360
let source = T. unlines [" module A where" , " f = hea" ]
1361
1361
docId <- openDoc' " A.hs" " haskell" source
1362
1362
compls <- getCompletions docId (Position 1 7 )
1363
- liftIO $ map dropDocs compls @?=
1363
+ liftIO $ map dropDocs compls @?=
1364
1364
[complItem " head" (Just CiFunction ) (Just " [a] -> a" )]
1365
1365
let [CompletionItem { _documentation = headDocs}] = compls
1366
1366
checkDocText " head" headDocs [ " Defined in 'Prelude'"
@@ -1372,12 +1372,12 @@ completionTests
1372
1372
let source = T. unlines [" module A where" , " f = Tru" ]
1373
1373
docId <- openDoc' " A.hs" " haskell" source
1374
1374
compls <- getCompletions docId (Position 1 7 )
1375
- liftIO $ map dropDocs compls @?=
1375
+ liftIO $ map dropDocs compls @?=
1376
1376
[ complItem " True" (Just CiConstructor ) (Just " Bool" )
1377
1377
#if MIN_GHC_API_VERSION(8,6,0)
1378
1378
, complItem " truncate" (Just CiFunction ) (Just " (RealFrac a, Integral b) => a -> b" )
1379
1379
#else
1380
- , complItem " truncate" (Just CiFunction ) (Just " RealFrac a => forall b. Integral b => a -> b" )
1380
+ , complItem " truncate" (Just CiFunction ) (Just " RealFrac a => forall b. Integral b => a -> b" )
1381
1381
#endif
1382
1382
]
1383
1383
, testSessionWait " type" $ do
@@ -1403,7 +1403,7 @@ completionTests
1403
1403
expectDiagnostics [ (" A.hs" , [(DsWarning , (2 , 0 ), " not used" )]) ]
1404
1404
changeDoc docId [TextDocumentContentChangeEvent Nothing Nothing $ T. unlines [" {-# OPTIONS_GHC -Wunused-binds #-}" , " module A () where" , " f = Prelude.hea" ]]
1405
1405
compls <- getCompletions docId (Position 2 15 )
1406
- liftIO $ map dropDocs compls @?=
1406
+ liftIO $ map dropDocs compls @?=
1407
1407
[complItem " head" (Just CiFunction ) (Just " [a] -> a" )]
1408
1408
let [CompletionItem { _documentation = headDocs}] = compls
1409
1409
checkDocText " head" headDocs [ " Defined in 'Prelude'"
@@ -1713,4 +1713,4 @@ openDoc' :: FilePath -> String -> T.Text -> Session TextDocumentIdentifier
1713
1713
openDoc' fp name contents = do
1714
1714
res@ (TextDocumentIdentifier uri) <- LSPTest. openDoc' fp name contents
1715
1715
sendNotification WorkspaceDidChangeWatchedFiles (DidChangeWatchedFilesParams $ List [FileEvent uri FcCreated ])
1716
- return res
1716
+ return res
0 commit comments