mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-04 10:50:15 +00:00
Enforce a current directory being set for spawned commands
This commit is contained in:
parent
0f95e60da3
commit
5ce14b0439
22 changed files with 99 additions and 75 deletions
|
@ -202,6 +202,7 @@ fn mk_child(
|
|||
env: impl IntoIterator<Item = (impl AsRef<std::ffi::OsStr>, impl AsRef<std::ffi::OsStr>)>,
|
||||
null_stderr: bool,
|
||||
) -> io::Result<Child> {
|
||||
#[allow(clippy::disallowed_methods)]
|
||||
let mut cmd = Command::new(path);
|
||||
cmd.envs(env)
|
||||
.env("RUST_ANALYZER_INTERNALS_DO_NOT_USE", "this is unstable")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue