Skip to content

Commit 02b4a73

Browse files
Enable highlight test.
1 parent 5b774f6 commit 02b4a73

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Diff for: test/functional/Highlight.hs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
{-# LANGUAGE OverloadedStrings #-}
22
module Highlight (tests) where
33

4-
import Control.Applicative.Combinators
54
import Control.Monad.IO.Class
65
import Language.Haskell.LSP.Test
76
import Language.Haskell.LSP.Types
87
import Test.Hls.Util
98
import Test.Tasty
10-
import Test.Tasty.ExpectedFailure (ignoreTestBecause)
119
import Test.Tasty.HUnit
1210

1311
tests :: TestTree
1412
tests = 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 =

Diff for: test/testdata/hie.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ cradle:
44
- "CodeActionImport"
55
- "CodeActionOnly"
66
- "CodeActionRename"
7+
- "Highlight"
78
- "TopLevelSignature"
89
- "TypedHoles"
910
- "TypedHoles2"

0 commit comments

Comments
 (0)