@@ -75,21 +75,22 @@ tests = testGroup "type definitions" [
75
75
(Range (toPos (18 , 1 )) (toPos (18 , 26 )))
76
76
]
77
77
78
- -- TODO Implement
79
- -- , ignoreTestBecause "Broken" $ testCase "find type-definition of type def in component"
80
- -- $ pendingWith "Finding symbols cross module is currently not supported"
81
- -- $ runSession hieCommand fullCaps "test/testdata/gototest"
82
- -- $ do
83
- -- doc <- openDoc "src/Lib2.hs" "haskell"
84
- -- otherDoc <- openDoc "src/Lib.hs" "haskell"
85
- -- closeDoc otherDoc
86
- -- defs <- getTypeDefinitions doc (toPos (13, 20))
87
- -- liftIO $ do
88
- -- fp <- canonicalizePath "test/testdata/gototest/src/Lib.hs"
89
- -- defs
90
- -- `shouldBe` [ Location (filePathToUri fp)
91
- -- (Range (toPos (8, 1)) (toPos (8, 29)))
92
- -- ]
78
+ {- - TODO Implement
79
+ , ignoreTestBecause "Broken" $ testCase "find type-definition of type def in component"
80
+ $ pendingWith "Finding symbols cross module is currently not supported"
81
+ $ runSession hieCommand fullCaps "test/testdata/gototest"
82
+ $ do
83
+ doc <- openDoc "src/Lib2.hs" "haskell"
84
+ otherDoc <- openDoc "src/Lib.hs" "haskell"
85
+ closeDoc otherDoc
86
+ defs <- getTypeDefinitions doc (toPos (13, 20))
87
+ liftIO $ do
88
+ fp <- canonicalizePath "test/testdata/gototest/src/Lib.hs"
89
+ defs
90
+ `shouldBe` [ Location (filePathToUri fp)
91
+ (Range (toPos (8, 1)) (toPos (8, 29)))
92
+ ]
93
+ --}
93
94
, ignoreTestBecause " Broken" $ testCase " find definition of parameterized data type"
94
95
$ runSession hieCommand fullCaps " test/testdata/gototest"
95
96
$ do
@@ -105,4 +106,4 @@ tests = testGroup "type definitions" [
105
106
106
107
-- NOTE: copied from Haskell.Ide.Engine.ArtifactMap
107
108
toPos :: (Int ,Int ) -> Position
108
- toPos (l,c) = Position (l- 1 ) (c- 1 )
109
+ toPos (l,c) = Position (l- 1 ) (c- 1 )
0 commit comments