Skip to content

Commit

Permalink
Enable highlight test.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwicksstringfield committed Dec 8, 2020
1 parent 5b774f6 commit 02b4a73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/functional/Highlight.hs
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
{-# LANGUAGE OverloadedStrings #-}
module Highlight (tests) where

import Control.Applicative.Combinators
import Control.Monad.IO.Class
import Language.Haskell.LSP.Test
import Language.Haskell.LSP.Types
import Test.Hls.Util
import Test.Tasty
import Test.Tasty.ExpectedFailure (ignoreTestBecause)
import Test.Tasty.HUnit

tests :: TestTree
tests = testGroup "highlight" [
ignoreTestBecause "Broken" $ testCase "works" $ runSession hlsCommand fullCaps "test/testdata" $ do
testCase "works" $ runSession hlsCommand fullCaps "test/testdata" $ do
doc <- openDoc "Highlight.hs" "haskell"
_ <- count 2 $ skipManyTill loggingNotification noDiagnostics
_ <- waitForDiagnosticsFrom doc
highlights <- getHighlights doc (Position 2 2)
liftIO $ do
let hls =
Expand Down
1 change: 1 addition & 0 deletions test/testdata/hie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ cradle:
- "CodeActionImport"
- "CodeActionOnly"
- "CodeActionRename"
- "Highlight"
- "TopLevelSignature"
- "TypedHoles"
- "TypedHoles2"

0 comments on commit 02b4a73

Please sign in to comment.