@@ -1729,7 +1729,7 @@ suggestImportTests = testGroup "suggest import actions"
17291729 -- there isn't a good way to wait until the whole project is checked atm
17301730 when waitForCheckProject $ liftIO $ sleep 0.5
17311731 let defLine = length imps + 1
1732- range = Range (Position defLine 0 ) (Position defLine maxBound )
1732+ range = Range (Position defLine 0 ) (Position defLine maxBoundUinteger )
17331733 actions <- getCodeActions doc range
17341734 if wanted
17351735 then do
@@ -2467,7 +2467,7 @@ fillTypedHoleTests = let
24672467 let expectedCode = sourceCode newA newB newC
24682468 doc <- createDoc " Testing.hs" " haskell" originalCode
24692469 _ <- waitForDiagnostics
2470- actionsOrCommands <- getCodeActions doc (Range (Position 9 0 ) (Position 9 maxBound ))
2470+ actionsOrCommands <- getCodeActions doc (Range (Position 9 0 ) (Position 9 maxBoundUinteger ))
24712471 chosenAction <- liftIO $ pickActionWithTitle actionTitle actionsOrCommands
24722472 executeCodeAction chosenAction
24732473 modifiedCode <- documentContents doc
@@ -2508,7 +2508,7 @@ fillTypedHoleTests = let
25082508 , " ioToSome = " <> x ]
25092509 doc <- createDoc " Test.hs" " haskell" $ mkDoc " _toException"
25102510 _ <- waitForDiagnostics
2511- actions <- getCodeActions doc (Range (Position 3 0 ) (Position 3 maxBound ))
2511+ actions <- getCodeActions doc (Range (Position 3 0 ) (Position 3 maxBoundUinteger ))
25122512 chosen <- liftIO $ pickActionWithTitle " replace _toException with E.toException" actions
25132513 executeCodeAction chosen
25142514 modifiedCode <- documentContents doc
@@ -3003,7 +3003,7 @@ addSigActionTests = let
30033003 let expectedCode = after' def sig
30043004 doc <- createDoc " Sigs.hs" " haskell" originalCode
30053005 _ <- waitForDiagnostics
3006- actionsOrCommands <- getCodeActions doc (Range (Position 5 1 ) (Position 5 maxBound ))
3006+ actionsOrCommands <- getCodeActions doc (Range (Position 5 1 ) (Position 5 maxBoundUinteger ))
30073007 chosenAction <- liftIO $ pickActionWithTitle (" add signature: " <> sig) actionsOrCommands
30083008 executeCodeAction chosenAction
30093009 modifiedCode <- documentContents doc
@@ -4800,7 +4800,7 @@ outlineTests = testGroup
48004800 SkFile
48014801 Nothing
48024802 Nothing
4803- (R 0 0 maxBound 0 )
4803+ (R 0 0 maxBoundUinteger 0 )
48044804 loc
48054805 (Just $ List cc)
48064806 classSymbol name loc cc = DocumentSymbol name
@@ -5991,3 +5991,8 @@ listOfChar | ghcVersion >= GHC90 = "String"
59915991thDollarIdx :: Int
59925992thDollarIdx | ghcVersion >= GHC90 = 1
59935993 | otherwise = 0
5994+
5995+ -- | We don't have a uinteger type yet. So hardcode the maxBound of uinteger, 2 ^ 31 - 1
5996+ -- as a constant.
5997+ maxBoundUinteger :: Int
5998+ maxBoundUinteger = 2147483647
0 commit comments