Initial public release of Warp.

Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
David Stern
2026-04-28 08:43:33 -05:00
commit 0dbd3d567a
4982 changed files with 1431549 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub(crate) enum CodingPanelEnablementState {
Enabled,
/// The active session is on a remote host.
///
/// `has_remote_server` is `true` when the session is registered with
/// `RemoteServerManager` (i.e. Auto SSH Warpification / mode 1). When
/// `true`, remote repo metadata may arrive and the file tree should show
/// a loading state. When `false` (tmux or subshell SSH), no data will
/// arrive and the file tree should show a disabled message.
RemoteSession {
has_remote_server: bool,
},
UnsupportedSession,
Disabled,
}
impl CodingPanelEnablementState {
pub(crate) fn from_session_env(
is_enabled: bool,
is_remote: bool,
is_unsupported_session: bool,
has_remote_server: bool,
) -> Self {
if is_remote {
Self::RemoteSession { has_remote_server }
} else if is_unsupported_session {
Self::UnsupportedSession
} else if is_enabled {
Self::Enabled
} else {
Self::Disabled
}
}
}