@@ -8,7 +8,7 @@ module Main(main) where
8
8
import Arguments (Arguments (.. ),
9
9
getArguments )
10
10
import Control.Concurrent.Extra (newLock , withLock )
11
- import Control.Monad.Extra (when , whenJust )
11
+ import Control.Monad.Extra (when )
12
12
import qualified Data.Aeson.Encode.Pretty as A
13
13
import Data.Default (Default (def ))
14
14
import Data.List.Extra (upper )
@@ -20,16 +20,15 @@ import Data.Version (showVersion)
20
20
import Development.GitRev (gitHash )
21
21
import Development.IDE (Logger (Logger ),
22
22
Priority (Info ))
23
+ import Development.IDE.Graph (ShakeOptions (shakeThreads ))
23
24
import qualified Development.IDE.Main as Main
24
25
import qualified Development.IDE.Plugin.HLS.GhcIde as GhcIde
25
26
import Development.IDE.Types.Options
26
- import Development.IDE.Graph (ShakeOptions (shakeThreads ))
27
27
import Ide.Plugin.Config (Config (checkParents , checkProject ))
28
28
import Ide.Plugin.ConfigUtils (pluginsToDefaultConfig ,
29
29
pluginsToVSCodeExtensionSchema )
30
30
import Ide.PluginUtils (pluginDescToIdePlugins )
31
31
import Paths_ghcide (version )
32
- import qualified System.Directory.Extra as IO
33
32
import System.Environment (getExecutablePath )
34
33
import System.Exit (exitSuccess )
35
34
import System.IO (hPutStrLn , stderr )
@@ -65,8 +64,6 @@ main = do
65
64
LT. putStrLn $ decodeUtf8 $ A. encodePretty $ pluginsToDefaultConfig hlsPlugins
66
65
exitSuccess
67
66
68
- whenJust argsCwd IO. setCurrentDirectory
69
-
70
67
-- lock to avoid overlapping output on stdout
71
68
lock <- newLock
72
69
let logger = Logger $ \ pri msg -> when (pri >= logLevel) $ withLock lock $
@@ -81,7 +78,6 @@ main = do
81
78
in defOptions
82
79
{ optShakeProfiling = argsShakeProfiling
83
80
, optOTMemoryProfiling = IdeOTMemoryProfiling argsOTMemoryProfiling
84
- , optTesting = IdeTesting argsTesting
85
81
, optShakeOptions = (optShakeOptions defOptions){shakeThreads = argsThreads}
86
82
, optCheckParents = pure $ checkParents config
87
83
, optCheckProject = pure $ checkProject config
0 commit comments