File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
plugins/hls-explicit-record-fields-plugin/test Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1342,6 +1342,7 @@ test-suite hls-explicit-record-fields-plugin-tests
1342
1342
, ghcide
1343
1343
, haskell-language-server :hls-explicit-record-fields-plugin
1344
1344
, hls-test-utils == 2.11.0.0
1345
+ , aeson
1345
1346
1346
1347
-----------------------------
1347
1348
-- overloaded record dot plugin
Original file line number Diff line number Diff line change 3
3
4
4
module Main ( main ) where
5
5
6
+ import qualified Data.Aeson as A
6
7
import Data.Either (rights )
7
8
import Data.Text (Text )
8
9
import qualified Data.Text as T
@@ -300,6 +301,7 @@ mkInlayHintsTest fp postfix line assert =
300
301
testCase (fp ++ concat postfix) $
301
302
runSessionWithServer def plugin testDataDir $ do
302
303
doc <- openDoc (fp ++ " .hs" ) " haskell"
304
+ setConfigSection " haskell" (createConfig False )
303
305
inlayHints <- getInlayHints doc (lineRange line)
304
306
liftIO $ assert inlayHints
305
307
where
@@ -396,3 +398,9 @@ mkPragmaTextEdit line =
396
398
397
399
testDataDir :: FilePath
398
400
testDataDir = " plugins" </> " hls-explicit-record-fields-plugin" </> " test" </> " testdata"
401
+
402
+ createConfig :: Bool -> A. Value
403
+ createConfig on = A. object [ " plugin"
404
+ A. .= A. object [ " ghcide-type-lenses"
405
+ A. .= A. object [ " config"
406
+ A. .= A. object [ " localBindingInlayHintOn" A. .= A. Bool on ]]]]
You can’t perform that action at this time.
0 commit comments