Use project environment in LSP runnables context (#29761)
Release Notes: - Fixed the tasks from LSP not inheriting the worktree environment ---- cc @SomeoneToIgnore
This commit is contained in:
parent
35539847a4
commit
460ac96df4
5 changed files with 55 additions and 11 deletions
|
@ -315,11 +315,7 @@ fn local_task_context_for_location(
|
|||
cx.spawn(async move |cx| {
|
||||
let project_env = environment
|
||||
.update(cx, |environment, cx| {
|
||||
environment.get_buffer_environment(
|
||||
location.buffer.clone(),
|
||||
worktree_store.clone(),
|
||||
cx,
|
||||
)
|
||||
environment.get_buffer_environment(&location.buffer, &worktree_store, cx)
|
||||
})
|
||||
.ok()?
|
||||
.await;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue