@@ -61,7 +61,6 @@ import Development.IDE.Plugin.Test (TestRequest(BlockSeconds,GetInterfaceFilesDi
61
61
main :: IO ()
62
62
main = do
63
63
-- We mess with env vars so run single-threaded.
64
- setEnv " TASTY_NUM_THREADS" " 1" True
65
64
defaultMainWithRerun $ testGroup " ghcide"
66
65
[ testSession " open close" $ do
67
66
doc <- createDoc " Testing.hs" " haskell" " "
@@ -2115,6 +2114,7 @@ findDefinitionAndHoverTests = let
2115
2114
closeDoc fooDoc
2116
2115
2117
2116
doc <- openTestDataDoc (dir </> sourceFilePath)
2117
+ void (skipManyTill anyMessage message :: Session WorkDoneProgressEndNotification )
2118
2118
found <- get doc pos
2119
2119
check found targetRange
2120
2120
@@ -2126,7 +2126,7 @@ findDefinitionAndHoverTests = let
2126
2126
check expected =
2127
2127
case hover of
2128
2128
Nothing -> unless (expected == ExpectNoHover ) $ liftIO $ assertFailure " no hover found"
2129
- Just Hover {_contents = (HoverContents MarkupContent {_value = msg})
2129
+ Just Hover {_contents = (HoverContents MarkupContent {_value = standardizeQuotes -> msg})
2130
2130
,_range = rangeInHover } ->
2131
2131
case expected of
2132
2132
ExpectRange expectedRange -> checkHoverRange expectedRange rangeInHover msg
@@ -2186,7 +2186,7 @@ findDefinitionAndHoverTests = let
2186
2186
aaaL14 = Position 18 20 ; aaa = [mkR 11 0 11 3 ]
2187
2187
dcL7 = Position 11 11 ; tcDC = [mkR 7 23 9 16 ]
2188
2188
dcL12 = Position 16 11 ;
2189
- xtcL5 = Position 9 11 ; xtc = [ExpectExternFail , ExpectHoverText [" Int" , " Defined in ‘ GHC.Types’ " ]]
2189
+ xtcL5 = Position 9 11 ; xtc = [ExpectExternFail , ExpectHoverText [" Int" , " Defined in ' GHC.Types' " ]]
2190
2190
tcL6 = Position 10 11 ; tcData = [mkR 7 0 9 16 , ExpectHoverText [" TypeConstructor" , " GotoHover.hs:8:1" ]]
2191
2191
vvL16 = Position 20 12 ; vv = [mkR 20 4 20 6 ]
2192
2192
opL16 = Position 20 15 ; op = [mkR 21 2 21 4 ]
@@ -2196,7 +2196,7 @@ findDefinitionAndHoverTests = let
2196
2196
xvL20 = Position 24 8 ; xvMsg = [ExpectExternFail , ExpectHoverText [" Data.Text.pack" , " :: String -> Text" ]]
2197
2197
clL23 = Position 27 11 ; cls = [mkR 25 0 26 20 , ExpectHoverText [" MyClass" , " GotoHover.hs:26:1" ]]
2198
2198
clL25 = Position 29 9
2199
- eclL15 = Position 19 8 ; ecls = [ExpectExternFail , ExpectHoverText [" Num" , " Defined in ‘ GHC.Num’ " ]]
2199
+ eclL15 = Position 19 8 ; ecls = [ExpectExternFail , ExpectHoverText [" Num" , " Defined in ' GHC.Num' " ]]
2200
2200
dnbL29 = Position 33 18 ; dnb = [ExpectHoverText [" :: ()" ], mkR 33 12 33 21 ]
2201
2201
dnbL30 = Position 34 23
2202
2202
lcbL33 = Position 37 26 ; lcb = [ExpectHoverText [" :: Char" ], mkR 37 26 37 27 ]
0 commit comments