mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03: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
@ -89,8 +89,10 @@ impl Project {
|
||||
path,
|
||||
});
|
||||
|
||||
let is_terminal = spawn_task.is_none() && (working_directory.as_ref().is_none())
|
||||
|| (working_directory.as_ref().unwrap().is_local());
|
||||
let is_terminal = spawn_task.is_none()
|
||||
&& working_directory
|
||||
.as_ref()
|
||||
.map_or(true, |work_dir| work_dir.is_local());
|
||||
let settings = TerminalSettings::get(settings_location, cx);
|
||||
let python_settings = settings.detect_venv.clone();
|
||||
let (completion_tx, completion_rx) = bounded(1);
|
||||
|
Loading…
Reference in New Issue
Block a user