Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly pass argFiles into defaultMain #1613

Merged
merged 1 commit into from Mar 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Ide/Main.hs
Expand Up @@ -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 ->
Expand Down