File tree 2 files changed +5
-5
lines changed
plugins/hls-fourmolu-plugin
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -41,20 +41,20 @@ descriptor plId =
41
41
{ pluginHandlers = mkFormattingHandlers $ provider plId
42
42
}
43
43
44
- properties :: Properties '[ 'PropertyKey " cli " 'TBoolean]
44
+ properties :: Properties '[ 'PropertyKey " external " 'TBoolean]
45
45
properties =
46
46
emptyProperties
47
47
& defineBooleanProperty
48
- # cli
49
- " Call out to a \" fourmolu\" executable, rather than using the bundled library"
48
+ # external
49
+ " Call out to an external \" fourmolu\" executable, rather than using the bundled library"
50
50
False
51
51
52
52
provider :: PluginId -> FormattingHandler IdeState
53
53
provider plId ideState typ contents fp fo = withIndefiniteProgress title Cancellable $ do
54
54
fileOpts <-
55
55
maybe [] (convertDynFlags . hsc_dflags . hscEnv)
56
56
<$> liftIO (runAction " Fourmolu" ideState $ use GhcSession fp)
57
- useCLI <- usePropertyLsp # cli plId properties
57
+ useCLI <- usePropertyLsp # external plId properties
58
58
if useCLI
59
59
then liftIO
60
60
. fmap (join . first (mkError . show ))
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ tests =
33
33
goldenWithFourmolu :: Bool -> TestName -> FilePath -> FilePath -> (TextDocumentIdentifier -> Session () ) -> TestTree
34
34
goldenWithFourmolu cli title path desc = goldenWithHaskellDocFormatter fourmoluPlugin " fourmolu" conf title testDataDir path desc " hs"
35
35
where
36
- conf = def{plcConfig = (\ (Object obj) -> obj) $ object [" cli " .= cli]}
36
+ conf = def{plcConfig = (\ (Object obj) -> obj) $ object [" external " .= cli]}
37
37
38
38
testDataDir :: FilePath
39
39
testDataDir = " test" </> " testdata"
You can’t perform that action at this time.
0 commit comments