File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
use std:: collections:: hash_map:: Entry ;
2
2
use std:: collections:: { BTreeMap , HashMap , HashSet } ;
3
+ use std:: env;
3
4
use std:: io:: ErrorKind ;
4
5
use std:: ops:: Deref ;
5
6
use std:: path:: Path ;
@@ -431,9 +432,22 @@ async fn spawn(
431
432
. stderr ( Stdio :: piped ( ) )
432
433
. spawn ( )
433
434
. with_context ( || {
435
+ let InstanceKey {
436
+ server,
437
+ args,
438
+ env,
439
+ workspace_root,
440
+ } = & key;
441
+ let path = env
442
+ . get ( "PATH" )
443
+ . map ( <_ >:: to_owned)
444
+ // Display PATH from our environment Command will if none was
445
+ // passed from the client environment.
446
+ . or_else ( || env:: var ( "PATH" ) . ok ( ) )
447
+ . unwrap_or_default ( ) ;
434
448
format ! (
435
- "spawning langauge server: server={:?}, args={:?}, cwd={:?}" ,
436
- key . server , key . args , key . workspace_root ,
449
+ "spawning langauge server: server={server :?}, args={args :?}, \
450
+ cwd={workspace_root:?}, path={path:?}, env={env:?}" ,
437
451
)
438
452
} ) ?;
439
453
You can’t perform that action at this time.
0 commit comments