File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE OverloadedStrings #-}
2
2
module Highlight (tests ) where
3
3
4
- import Control.Applicative.Combinators
5
4
import Control.Monad.IO.Class
6
5
import Language.Haskell.LSP.Test
7
6
import Language.Haskell.LSP.Types
8
7
import Test.Hls.Util
9
8
import Test.Tasty
10
- import Test.Tasty.ExpectedFailure (ignoreTestBecause )
11
9
import Test.Tasty.HUnit
12
10
13
11
tests :: TestTree
14
12
tests = testGroup " highlight" [
15
- ignoreTestBecause " Broken " $ testCase " works" $ runSession hlsCommand fullCaps " test/testdata" $ do
13
+ testCase " works" $ runSession hlsCommand fullCaps " test/testdata" $ do
16
14
doc <- openDoc " Highlight.hs" " haskell"
17
- _ <- count 2 $ skipManyTill loggingNotification noDiagnostics
15
+ _ <- waitForDiagnosticsFrom doc
18
16
highlights <- getHighlights doc (Position 2 2 )
19
17
liftIO $ do
20
18
let hls =
Original file line number Diff line number Diff line change 4
4
- " CodeActionImport"
5
5
- " CodeActionOnly"
6
6
- " CodeActionRename"
7
+ - " Highlight"
7
8
- " TopLevelSignature"
8
9
- " TypedHoles"
9
10
- " TypedHoles2"
You can’t perform that action at this time.
0 commit comments