diff --git a/src/Ide/Main.hs b/src/Ide/Main.hs index b0396159f1..3d496a1354 100644 --- a/src/Ide/Main.hs +++ b/src/Ide/Main.hs @@ -102,7 +102,7 @@ runLspMode lspArgs@LspArguments{..} idePlugins = do hPutStrLn stderr "If you are seeing this in a terminal, you probably should have run ghcide WITHOUT the --lsp option!" Main.defaultMain def - { Main.argFiles = if argLSP then Nothing else Just [] + { Main.argFiles = if argLSP then Nothing else Just argFiles , Main.argsHlsPlugins = idePlugins , Main.argsLogger = pure hlsLogger , Main.argsIdeOptions = \_config sessionLoader ->