File tree 3 files changed +3
-6
lines changed
3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ extra-source-files:
20
20
test/testdata/simple-cabal/simple-cabal.cabal
21
21
22
22
common warnings
23
- ghc-options : -Wall
23
+ ghc-options : -Wall -Wunused-packages
24
24
25
25
library
26
26
import : warnings
@@ -80,15 +80,12 @@ test-suite tests
80
80
, base
81
81
, bytestring
82
82
, Cabal-syntax >= 3.7
83
- , directory
84
83
, filepath
85
- , ghcide
86
84
, hls-cabal-plugin
87
85
, hls-test-utils == 2.6.0.0
88
86
, lens
89
87
, lsp
90
88
, lsp-types
91
- , tasty-hunit
92
89
, text
93
90
, text-rope
94
91
, transformers
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ completion recorder ide _ complParams = do
286
286
(Just cnts, Just path) -> do
287
287
pref <- VFS. getCompletionPrefix position cnts
288
288
let res = result pref path cnts
289
- liftIO $ fmap ( InL ) res
289
+ liftIO $ fmap InL res
290
290
_ -> pure . InR $ InR Null
291
291
where
292
292
result :: Maybe VFS. PosPrefixInfo -> FilePath -> VFS. VirtualFile -> IO [CompletionItem ]
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ getContextTests =
78
78
, testCase " Cabal version keyword - no value, many spaces" $ do
79
79
-- on a file, where the "cabal-version:" keyword is already written
80
80
-- the context should still be top level but the keyword should be recognized
81
- ctx <- callGetContext (Position 0 45 ) ( " " ) [" cabal-version:" <> T. replicate 50 " " ]
81
+ ctx <- callGetContext (Position 0 45 ) " " [" cabal-version:" <> T. replicate 50 " " ]
82
82
ctx @?= (TopLevel , KeyWord " cabal-version:" )
83
83
, testCase " Cabal version keyword - keyword partly written" $ do
84
84
-- in the first line of the file, if the keyword
You can’t perform that action at this time.
0 commit comments