Skip to content

Commit

Permalink
Change flag name from "cli" to "external"
Browse files Browse the repository at this point in the history
  • Loading branch information
georgefst committed Mar 11, 2022
1 parent 129e584 commit fb3975e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/hls-fourmolu-plugin/src/Ide/Plugin/Fourmolu.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/hls-fourmolu-plugin/test/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit fb3975e

Please sign in to comment.