Skip to content

Commit 9cb3a1e

Browse files
committed
fix semantic tokens test
1 parent 68e5a13 commit 9cb3a1e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

plugins/hls-semantic-tokens-plugin/test/SemanticTokensTest.hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ import System.FilePath
3737
import Test.Hls (HasCallStack,
3838
PluginTestDescriptor,
3939
SMethod (SMethod_TextDocumentSemanticTokensFullDelta),
40-
TestName, TestTree,
41-
changeDoc,
40+
TestName, TestRunner,
41+
TestTree, changeDoc,
4242
defaultTestRunner,
4343
documentContents, fullCaps,
4444
goldenGitDiff,
@@ -72,14 +72,14 @@ semanticTokensPlugin = Test.Hls.mkPluginTestDescriptor enabledSemanticDescriptor
7272
}
7373
}
7474

75-
goldenWithHaskellAndCapsOutPut :: Pretty b => Config -> PluginTestDescriptor b -> TestName -> FS.VirtualFileTree -> FilePath -> String -> (TextDocumentIdentifier -> Session String) -> TestTree
75+
goldenWithHaskellAndCapsOutPut :: (Pretty b) => Config -> PluginTestDescriptor b -> TestName -> FS.VirtualFileTree -> FilePath -> String -> (TextDocumentIdentifier -> Session String) -> TestTree
7676
goldenWithHaskellAndCapsOutPut config plugin title tree path desc act =
7777
goldenGitDiff title (FS.vftOriginalRoot tree </> path <.> desc) $
78-
runSessionWithServerInTmpDir config plugin tree $
79-
fromString <$> do
78+
fromString <$> (runSessionWithServerInTmpDir config plugin tree $
79+
do
8080
doc <- openDoc (path <.> "hs") "haskell"
8181
void waitForBuildQueue
82-
act doc
82+
act doc)
8383

8484
goldenWithSemanticTokensWithDefaultConfig :: TestName -> FilePath -> TestTree
8585
goldenWithSemanticTokensWithDefaultConfig title path =

0 commit comments

Comments
 (0)