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
13421342 , ghcide
13431343 , haskell-language-server :hls-explicit-record-fields-plugin
13441344 , hls-test-utils == 2.11.0.0
1345+ , aeson
13451346
13461347-----------------------------
13471348-- overloaded record dot plugin
Original file line number Diff line number Diff line change 33
44module Main ( main ) where
55
6+ import qualified Data.Aeson as A
67import Data.Either (rights )
78import Data.Text (Text )
89import qualified Data.Text as T
@@ -300,6 +301,7 @@ mkInlayHintsTest fp postfix line assert =
300301 testCase (fp ++ concat postfix) $
301302 runSessionWithServer def plugin testDataDir $ do
302303 doc <- openDoc (fp ++ " .hs" ) " haskell"
304+ setConfigSection " haskell" (createConfig False )
303305 inlayHints <- getInlayHints doc (lineRange line)
304306 liftIO $ assert inlayHints
305307 where
@@ -396,3 +398,9 @@ mkPragmaTextEdit line =
396398
397399testDataDir :: FilePath
398400testDataDir = " 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