mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-03 17:44:30 +00:00
parent
fa85238c69
commit
be531653a4
2 changed files with 4 additions and 3 deletions
|
@ -195,7 +195,8 @@ impl ActivityIndicator {
|
||||||
on_click: Some(Arc::new(move |this, cx| {
|
on_click: Some(Arc::new(move |this, cx| {
|
||||||
this.project.update(cx, |project, cx| {
|
this.project.update(cx, |project, cx| {
|
||||||
project.remove_environment_error(cx, worktree_id);
|
project.remove_environment_error(cx, worktree_id);
|
||||||
})
|
});
|
||||||
|
cx.dispatch_action(Box::new(workspace::OpenLog));
|
||||||
})),
|
})),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,7 +134,7 @@ impl ProjectEnvironment {
|
||||||
let load_direnv = ProjectSettings::get_global(cx).load_direnv.clone();
|
let load_direnv = ProjectSettings::get_global(cx).load_direnv.clone();
|
||||||
|
|
||||||
cx.spawn(|this, mut cx| async move {
|
cx.spawn(|this, mut cx| async move {
|
||||||
let (mut shell_env, error) = cx
|
let (mut shell_env, error_message) = cx
|
||||||
.background_executor()
|
.background_executor()
|
||||||
.spawn({
|
.spawn({
|
||||||
let cwd = worktree_abs_path.clone();
|
let cwd = worktree_abs_path.clone();
|
||||||
|
@ -152,7 +152,7 @@ impl ProjectEnvironment {
|
||||||
set_origin_marker(shell_env, EnvironmentOrigin::WorktreeShell);
|
set_origin_marker(shell_env, EnvironmentOrigin::WorktreeShell);
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(error) = error {
|
if let Some(error) = error_message {
|
||||||
this.update(&mut cx, |this, _| {
|
this.update(&mut cx, |this, _| {
|
||||||
this.environment_error_messages.insert(worktree_id, error);
|
this.environment_error_messages.insert(worktree_id, error);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue