File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed
plugins/hls-cabal-plugin/test Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -272,15 +272,15 @@ codeLensTests = testGroup "Code Lens"
272272 ]
273273 where
274274 dependencyVersionLenses =
275- runCabalTestCaseSession " Code Lens Test" " hover " $ do
276- doc <- openDoc " hover- deps.cabal" " cabal"
275+ runCabalTestCaseSession " Code Lens Test" " dependencies " $ do
276+ doc <- openDoc " deps-versions .cabal" " cabal"
277277 lenses <- getCodeLenses doc
278- liftIO $ map (preview $ L. command . _Just . L. title) lenses @?= [Just " 4.19.2.0" ]
278+ liftIO $ map (preview $ L. command . _Just . L. title) lenses @?= [Just " 4.19.2.0" , Just " text (2.1.1) " , Just " transformers (0.6.1.0) " ]
279279 closeDoc doc
280280 dependencyVersionInlayHints =
281- runCabalTestCaseSession " InlayHints tests" " hover " $ do
282- doc <- openDoc " hover- deps.cabal" " cabal"
281+ runCabalTestCaseSession " InlayHints tests" " dependencies " $ do
282+ doc <- openDoc " deps-versions .cabal" " cabal"
283283 let range = Range (Position 0 0 ) (Position 1000 1000 )
284284 hints <- getInlayHints doc range
285- liftIO $ map (view L. label) hints @?= [InL " (4.19.2.0)" ]
285+ liftIO $ map (view L. label) hints @?= [InL " (4.19.2.0)" , InL " (2.1.1) " , InL " (0.6.1.0) " ]
286286 closeDoc doc
Original file line number Diff line number Diff line change 1+ cabal-version : 3.0
2+ name : deps-versions
3+ version : 0.1.0.0
4+
5+ library
6+ exposed-modules : Module
7+ build-depends : base ^>= 4.14.3.0
8+ , text, transformers
9+ hs-source-dirs : src
10+ default-language : Haskell2010
You can’t perform that action at this time.
0 commit comments