Skip to content

Commit 0cf081d

Browse files
authored
Properly pass argFiles into defaultMain (#1613)
1 parent 74cfe30 commit 0cf081d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ide/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ runLspMode lspArgs@LspArguments{..} idePlugins = do
102102
hPutStrLn stderr "If you are seeing this in a terminal, you probably should have run ghcide WITHOUT the --lsp option!"
103103

104104
Main.defaultMain def
105-
{ Main.argFiles = if argLSP then Nothing else Just []
105+
{ Main.argFiles = if argLSP then Nothing else Just argFiles
106106
, Main.argsHlsPlugins = idePlugins
107107
, Main.argsLogger = pure hlsLogger
108108
, Main.argsIdeOptions = \_config sessionLoader ->

0 commit comments

Comments
 (0)