File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,9 @@ use gleam_core::{
1212pub fn main ( ) -> Result < ( ) > {
1313 tracing:: info!( "language_server_starting" ) ;
1414
15- eprintln ! (
16- "Hello human!
15+ if std:: io:: IsTerminal :: is_terminal ( & std:: io:: stdin ( ) ) {
16+ eprintln ! (
17+ "Hello human!
1718
1819This command is intended to be run by language server clients such
1920as a text editor rather than being run directly in the console.
@@ -22,13 +23,11 @@ Many editors will automatically start the language server for you
2223when you open a Gleam project. If yours does not you may need to
2324look up how to configure your editor to use a language server.
2425
25- If you are seeing this in the logs of your editor you can safely
26- ignore this message.
27-
2826If you have run `gleam lsp` yourself in your terminal then exit
2927this program by pressing ctrl+c.
3028"
31- ) ;
29+ ) ;
30+ }
3231
3332 // Create the transport. Includes the stdio (stdin and stdout) versions but this could
3433 // also be implemented to use sockets or HTTP.
You can’t perform that action at this time.
0 commit comments