Skip to content

Commit 744891f

Browse files
authored
Provide a default value for is_via_ssh when it isn't sent via older clients (#18874)
Release Notes: - N/A
1 parent f33019c commit 744891f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/telemetry_events/src/telemetry_events.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ pub struct EditorEvent {
117117
/// Whether the user has copilot enabled for the language of the file opened or saved
118118
pub copilot_enabled_for_language: bool,
119119
/// Whether the client is opening/saving a local file or a remote file via SSH
120+
#[serde(default)]
120121
pub is_via_ssh: bool,
121122
}
122123

@@ -175,6 +176,7 @@ pub struct EditEvent {
175176
pub duration: i64,
176177
pub environment: String,
177178
/// Whether the edits occurred locally or remotely via SSH
179+
#[serde(default)]
178180
pub is_via_ssh: bool,
179181
}
180182

0 commit comments

Comments
 (0)