Skip to content

Commit

Permalink
Provide a default value for is_via_ssh when it isn't sent via older…
Browse files Browse the repository at this point in the history
… clients (#18874)

Release Notes:

- N/A
  • Loading branch information
JosephTLyons authored Oct 8, 2024
1 parent f33019c commit 744891f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/telemetry_events/src/telemetry_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down Expand Up @@ -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,
}

Expand Down

0 comments on commit 744891f

Please sign in to comment.