File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
ghcide/src/Development/IDE Expand file tree Collapse file tree 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
1818import Data.Hashable (hashed )
1919import Data.List.Extra (intercalate , isPrefixOf ,
2020 nub , nubOrd , partition )
21- import Data.Maybe (catMaybes , fromMaybe ,
22- isJust )
21+ import Data.Maybe (catMaybes , isJust )
2322import qualified Data.Text as T
2423import qualified Data.Text.IO as T
2524import Development.IDE (Action , Rules ,
@@ -210,14 +209,12 @@ defaultMain Arguments{..} = do
210209
211210 -- We want to set the global DynFlags right now, so that we can use
212211 -- `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
215212 _mlibdir <-
216213 setInitialDynFlags dir argsSessionLoadingOptions
217214 `catchAny` (\ e -> (hPutStrLn stderr $ " setInitialDynFlags: " ++ displayException e) >> pure Nothing )
218215
219216
220- sessionLoader <- loadSessionWithOptions argsSessionLoadingOptions $ fromMaybe dir rootPath
217+ sessionLoader <- loadSessionWithOptions argsSessionLoadingOptions dir
221218 config <- LSP. runLspT env LSP. getConfig
222219 let def_options = argsIdeOptions config sessionLoader
223220
You can’t perform that action at this time.
0 commit comments