Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1494 from alanz/lsp-cli-option
Browse files Browse the repository at this point in the history
Retain the --lsp option, to not break existing clients
  • Loading branch information
alanz authored Dec 23, 2019
2 parents 23892ca + 329bbd2 commit 7e68832
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Haskell/Ide/Engine/Options.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Options.Applicative.Simple
data GlobalOpts = GlobalOpts
{ optDebugOn :: Bool
, optLogFile :: Maybe String
, _optLsp :: Bool -- Kept for a while, to not break legacy clients
, projectRoot :: Maybe String
, optBiosVerbose :: Bool
, optCaptureFile :: Maybe FilePath
Expand All @@ -25,6 +26,9 @@ globalOptsParser = GlobalOpts
<> metavar "LOGFILE"
<> help "File to log to, defaults to stdout"
))
<*> flag True True
( long "lsp"
<> help "Legacy flag, no longer used, to enable LSP mode. Not required.")
<*> optional (strOption
( long "project-root"
<> short 'r'
Expand Down

0 comments on commit 7e68832

Please sign in to comment.