mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 22:34:13 +00:00
One less unwrap (#12448)
Fixes https://zed-industries.slack.com/archives/C04S6T1T7TQ/p1717011343884699 Release Notes: - N/A
This commit is contained in:
parent
5bcb9ed017
commit
0f927fa6fb
1 changed files with 4 additions and 2 deletions
|
@ -89,8 +89,10 @@ impl Project {
|
||||||
path,
|
path,
|
||||||
});
|
});
|
||||||
|
|
||||||
let is_terminal = spawn_task.is_none() && (working_directory.as_ref().is_none())
|
let is_terminal = spawn_task.is_none()
|
||||||
|| (working_directory.as_ref().unwrap().is_local());
|
&& working_directory
|
||||||
|
.as_ref()
|
||||||
|
.map_or(true, |work_dir| work_dir.is_local());
|
||||||
let settings = TerminalSettings::get(settings_location, cx);
|
let settings = TerminalSettings::get(settings_location, cx);
|
||||||
let python_settings = settings.detect_venv.clone();
|
let python_settings = settings.detect_venv.clone();
|
||||||
let (completion_tx, completion_rx) = bounded(1);
|
let (completion_tx, completion_rx) = bounded(1);
|
||||||
|
|
Loading…
Reference in a new issue