Clean up handling of serialized ssh connection ids (#36781)

Small follow-up to #36714

Release Notes:

- N/A
This commit is contained in:
Max Brunsfeld
2025-08-22 15:44:58 -07:00
committed by GitHub
parent bc566fe18e
commit 153724aad3
4 changed files with 93 additions and 97 deletions
+5 -2
View File
@@ -12,7 +12,6 @@ use db::sqlez::{
use gpui::{AsyncWindowContext, Entity, WeakEntity};
use project::{Project, debugger::breakpoint_store::SourceBreakpoint};
use remote::ssh_session::SshProjectId;
use serde::{Deserialize, Serialize};
use std::{
collections::BTreeMap,
@@ -22,9 +21,13 @@ use std::{
use util::ResultExt;
use uuid::Uuid;
#[derive(
Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy, serde::Serialize, serde::Deserialize,
)]
pub(crate) struct SshConnectionId(pub u64);
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
pub struct SerializedSshConnection {
pub id: SshProjectId,
pub host: String,
pub port: Option<u16>,
pub user: Option<String>,