diff --git a/rls/src/actions/run.rs b/rls/src/actions/run.rs index 1706b0aeb2d..80c428adc39 100644 --- a/rls/src/actions/run.rs +++ b/rls/src/actions/run.rs @@ -67,6 +67,7 @@ pub fn collect_run_actions(ctx: &InitActionContext, file: &Path) -> Vec, pub env: HashMap, + pub cwd: Option, } pub struct LineIndex { diff --git a/tests/client.rs b/tests/client.rs index 7e2e7be07c3..a569c41738d 100644 --- a/tests/client.rs +++ b/tests/client.rs @@ -987,7 +987,8 @@ fn client_lens_run() { arguments: Some(vec![json!({ "args": [ "test", "--", "--nocapture", "test_foo" ], "binary": "cargo", - "env": { "RUST_BACKTRACE": "short" } + "env": { "RUST_BACKTRACE": "short" }, + "cwd": p.root().join("src") })]), }), data: None,