This repository was archived by the owner on Oct 7, 2020. It is now read-only.
File tree 1 file changed +8
-11
lines changed
1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE OverloadedStrings #-}
2
2
module CommandSpec where
3
3
4
- import Control.Lens hiding (List )
5
4
import Control.Monad.IO.Class
6
5
import qualified Data.Text as T
7
- import Data.Char
8
6
import Language.Haskell.LSP.Test
9
7
import Language.Haskell.LSP.Types as LSP
10
- import Language.Haskell.LSP.Types.Lens as LSP
11
8
import Test.Hspec
12
9
import TestUtils
13
10
14
11
spec :: Spec
15
- spec = describe " commands" $ do
16
- it " are prefixed" $ runSession hieCommand fullCaps " test/testdata/" $ do
17
- ResponseMessage _ _ (Just res) Nothing <- initializeResponse
18
- let List cmds = res ^. LSP. capabilities . executeCommandProvider . _Just . commands
19
- f x = (T. length (T. takeWhile isNumber x) >= 1 ) && (T. count " :" x >= 2 )
20
- liftIO $ do
21
- cmds `shouldSatisfy` all f
22
- cmds `shouldNotSatisfy` null
12
+ spec = describe " commands" $
13
+ -- it "are prefixed" $ runSession hieCommand fullCaps "test/testdata/" $ do
14
+ -- ResponseMessage _ _ (Just res) Nothing <- initializeResponse
15
+ -- let List cmds = res ^. LSP.capabilities . executeCommandProvider . _Just . commands
16
+ -- f x = (T.length (T.takeWhile isNumber x) >= 1) && (T.count ":" x >= 2)
17
+ -- liftIO $ do
18
+ -- cmds `shouldSatisfy` all f
19
+ -- cmds `shouldNotSatisfy` null
23
20
24
21
it " get de-prefixed" $ runSession hieCommand fullCaps " test/testdata/" $ do
25
22
ResponseMessage _ _ _ (Just err) <- request
You can’t perform that action at this time.
0 commit comments