File tree 1 file changed +2
-5
lines changed
ghcide/src/Development/IDE 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,7 @@ import qualified Data.HashMap.Strict as HashMap
18
18
import Data.Hashable (hashed )
19
19
import Data.List.Extra (intercalate , isPrefixOf ,
20
20
nub , nubOrd , partition )
21
- import Data.Maybe (catMaybes , fromMaybe ,
22
- isJust )
21
+ import Data.Maybe (catMaybes , isJust )
23
22
import qualified Data.Text as T
24
23
import qualified Data.Text.IO as T
25
24
import Development.IDE (Action , Rules ,
@@ -210,14 +209,12 @@ defaultMain Arguments{..} = do
210
209
211
210
-- We want to set the global DynFlags right now, so that we can use
212
211
-- `unsafeGlobalDynFlags` even before the project is configured
213
- -- We do it here since haskell-lsp changes our working directory to the correct place ('rootPath')
214
- -- before calling this function
215
212
_mlibdir <-
216
213
setInitialDynFlags dir argsSessionLoadingOptions
217
214
`catchAny` (\ e -> (hPutStrLn stderr $ " setInitialDynFlags: " ++ displayException e) >> pure Nothing )
218
215
219
216
220
- sessionLoader <- loadSessionWithOptions argsSessionLoadingOptions $ fromMaybe dir rootPath
217
+ sessionLoader <- loadSessionWithOptions argsSessionLoadingOptions dir
221
218
config <- LSP. runLspT env LSP. getConfig
222
219
let def_options = argsIdeOptions config sessionLoader
223
220
You can’t perform that action at this time.
0 commit comments