Finish removing git repository state and scanning logic from worktrees (#27568)
This PR completes the process of moving git repository state storage and scanning logic from the worktree crate to `project::git_store`. Release Notes: - N/A --------- Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com> Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
parent
8f25251faf
commit
e7290df02b
39 changed files with 3121 additions and 3529 deletions
|
@ -8078,9 +8078,7 @@ impl LspStore {
|
|||
});
|
||||
|
||||
if let Some(environment) = &self.as_local().map(|local| local.environment.clone()) {
|
||||
environment.update(cx, |env, cx| {
|
||||
env.get_environment(worktree_id, worktree_abs_path, cx)
|
||||
})
|
||||
environment.update(cx, |env, cx| env.get_environment(worktree_abs_path, cx))
|
||||
} else {
|
||||
Task::ready(None).shared()
|
||||
}
|
||||
|
@ -9864,13 +9862,10 @@ impl LocalLspAdapterDelegate {
|
|||
fs: Arc<dyn Fs>,
|
||||
cx: &mut App,
|
||||
) -> Arc<Self> {
|
||||
let (worktree_id, worktree_abs_path) = {
|
||||
let worktree = worktree.read(cx);
|
||||
(worktree.id(), worktree.abs_path())
|
||||
};
|
||||
let worktree_abs_path = worktree.read(cx).abs_path();
|
||||
|
||||
let load_shell_env_task = environment.update(cx, |env, cx| {
|
||||
env.get_environment(Some(worktree_id), Some(worktree_abs_path), cx)
|
||||
env.get_environment(Some(worktree_abs_path), cx)
|
||||
});
|
||||
|
||||
Arc::new(Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue