Provide a default value for is_via_ssh when it isn't sent via older clients (#18874)

Release Notes:

- N/A
This commit is contained in:
Joseph T. Lyons
2024-10-08 16:16:38 -04:00
committed by GitHub
parent f33019c885
commit 744891f15f
@@ -117,6 +117,7 @@ pub struct EditorEvent {
/// Whether the user has copilot enabled for the language of the file opened or saved
pub copilot_enabled_for_language: bool,
/// Whether the client is opening/saving a local file or a remote file via SSH
#[serde(default)]
pub is_via_ssh: bool,
}
@@ -175,6 +176,7 @@ pub struct EditEvent {
pub duration: i64,
pub environment: String,
/// Whether the edits occurred locally or remotely via SSH
#[serde(default)]
pub is_via_ssh: bool,
}