agent_ui: Do not show Codex wsl warning on wsl take 2 (#42096)
https://github.com/zed-industries/zed/pull/42079#discussion_r2498472887 Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
@@ -5769,12 +5769,7 @@ impl Render for AcpThreadView {
|
|||||||
})
|
})
|
||||||
.children(self.render_thread_retry_status_callout(window, cx))
|
.children(self.render_thread_retry_status_callout(window, cx))
|
||||||
.children({
|
.children({
|
||||||
if self
|
if cfg!(windows) && self.project.read(cx).is_local() {
|
||||||
.project
|
|
||||||
.read(cx)
|
|
||||||
.remote_connection_options(cx)
|
|
||||||
.is_some_and(|it| it.is_wsl())
|
|
||||||
{
|
|
||||||
self.render_codex_windows_warning(cx)
|
self.render_codex_windows_warning(cx)
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|||||||
@@ -1077,10 +1077,6 @@ impl RemoteConnectionOptions {
|
|||||||
RemoteConnectionOptions::Wsl(opts) => opts.distro_name.clone(),
|
RemoteConnectionOptions::Wsl(opts) => opts.distro_name.clone(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_wsl(&self) -> bool {
|
|
||||||
matches!(self, RemoteConnectionOptions::Wsl(_))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<SshConnectionOptions> for RemoteConnectionOptions {
|
impl From<SshConnectionOptions> for RemoteConnectionOptions {
|
||||||
|
|||||||
Reference in New Issue
Block a user