File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 11{-# LANGUAGE OverloadedStrings #-}
22module Highlight (tests ) where
33
4- import Control.Applicative.Combinators
54import Control.Monad.IO.Class
65import Language.Haskell.LSP.Test
76import Language.Haskell.LSP.Types
87import Test.Hls.Util
98import Test.Tasty
10- import Test.Tasty.ExpectedFailure (ignoreTestBecause )
119import Test.Tasty.HUnit
1210
1311tests :: TestTree
1412tests = testGroup " highlight" [
15- ignoreTestBecause " Broken " $ testCase " works" $ runSession hlsCommand fullCaps " test/testdata" $ do
13+ testCase " works" $ runSession hlsCommand fullCaps " test/testdata" $ do
1614 doc <- openDoc " Highlight.hs" " haskell"
17- _ <- count 2 $ skipManyTill loggingNotification noDiagnostics
15+ _ <- waitForDiagnosticsFrom doc
1816 highlights <- getHighlights doc (Position 2 2 )
1917 liftIO $ do
2018 let hls =
Original file line number Diff line number Diff line change 44 - " CodeActionImport"
55 - " CodeActionOnly"
66 - " CodeActionRename"
7+ - " Highlight"
78 - " Symbols"
89 - " TopLevelSignature"
910 - " TypedHoles"
You can’t perform that action at this time.
0 commit comments