From fb3975eedbf553457d46c74ea1500182aa3320b3 Mon Sep 17 00:00:00 2001 From: George Thomas Date: Fri, 11 Mar 2022 10:16:59 +0000 Subject: [PATCH] Change flag name from "cli" to "external" --- plugins/hls-fourmolu-plugin/src/Ide/Plugin/Fourmolu.hs | 4 ++-- plugins/hls-fourmolu-plugin/test/Main.hs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/hls-fourmolu-plugin/src/Ide/Plugin/Fourmolu.hs b/plugins/hls-fourmolu-plugin/src/Ide/Plugin/Fourmolu.hs index c3266e564f0..bdbfd6c809d 100644 --- a/plugins/hls-fourmolu-plugin/src/Ide/Plugin/Fourmolu.hs +++ b/plugins/hls-fourmolu-plugin/src/Ide/Plugin/Fourmolu.hs @@ -41,12 +41,12 @@ descriptor plId = { pluginHandlers = mkFormattingHandlers $ provider plId } -properties :: Properties '[ 'PropertyKey "cli" 'TBoolean] +properties :: Properties '[ 'PropertyKey "external" 'TBoolean] properties = emptyProperties & defineBooleanProperty #cli - "Call out to a \"fourmolu\" executable, rather than using the bundled library" + "Call out to an external \"fourmolu\" executable, rather than using the bundled library" False provider :: PluginId -> FormattingHandler IdeState diff --git a/plugins/hls-fourmolu-plugin/test/Main.hs b/plugins/hls-fourmolu-plugin/test/Main.hs index a78d5f479c2..f339d716bc1 100644 --- a/plugins/hls-fourmolu-plugin/test/Main.hs +++ b/plugins/hls-fourmolu-plugin/test/Main.hs @@ -33,7 +33,7 @@ tests = goldenWithFourmolu :: Bool -> TestName -> FilePath -> FilePath -> (TextDocumentIdentifier -> Session ()) -> TestTree goldenWithFourmolu cli title path desc = goldenWithHaskellDocFormatter fourmoluPlugin "fourmolu" conf title testDataDir path desc "hs" where - conf = def{plcConfig = (\(Object obj) -> obj) $ object ["cli" .= cli]} + conf = def{plcConfig = (\(Object obj) -> obj) $ object ["external" .= cli]} testDataDir :: FilePath testDataDir = "test" "testdata"