on master help sign in
Issue visual warning for humans if --lsp option used (#161)

Experience shows that people sometimes mistakenly start `ghcide` on the command line with the `--lsp` option (which is intended to be used only in server/client communication scenarios) and then wonder why nothing is working.. So let's issue a warning message whenever `--lsp` is used.

commite583f13d8d47ae7cb90be97bd0f029bea11e4a92 authorJacek Generowicz <jacg@my-post-office.net> dateTue 8 Oct 2019, 19:43 (7 years ago) parent2a67821
1 file changed+1
exe/Main.hs+1
exe/Main.hs+1
@@ -75,6 +75,7 @@ main = do
7575 if argLSP then do
7676 t <- offsetTime
7777 hPutStrLn stderr "Starting LSP server..."
78+ hPutStrLn stderr "If you are seeing this in a terminal, you probably should have run ghcidie WITHOUT the --lsp option!"
7879 runLanguageServer def def $ \event vfs caps -> do
7980 t <- t
8081 hPutStrLn stderr $ "Started LSP server in " ++ showDuration t