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
|
@ -8190,7 +8190,7 @@ impl LspStore {
|
|||
) -> Shared<Task<Option<HashMap<String, String>>>> {
|
||||
if let Some(environment) = &self.as_local().map(|local| local.environment.clone()) {
|
||||
environment.update(cx, |env, cx| {
|
||||
env.get_buffer_environment(buffer.clone(), self.worktree_store.clone(), cx)
|
||||
env.get_buffer_environment(&buffer, &self.worktree_store, cx)
|
||||
})
|
||||
} else {
|
||||
Task::ready(None).shared()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue