Add ssh initialization events (#18831)

Release Notes:

- N/A
This commit is contained in:
Joseph T. Lyons 2024-10-07 16:17:43 -04:00 committed by GitHub
parent 5387a6f7f9
commit a15b10986a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 27 additions and 4 deletions

View file

@ -279,6 +279,13 @@ impl DevServerProjects {
match connection.await {
Some(_) => this
.update(&mut cx, |this, cx| {
let _ = this.workspace.update(cx, |workspace, _| {
workspace
.client()
.telemetry()
.report_app_event("create ssh server".to_string())
});
this.add_ssh_server(connection_options, cx);
this.mode = Mode::Default(None);
cx.notify()
@ -422,7 +429,15 @@ impl DevServerProjects {
);
cx.new_view(|cx| {
Workspace::new(None, project.clone(), app_state.clone(), cx)
let workspace =
Workspace::new(None, project.clone(), app_state.clone(), cx);
workspace
.client()
.telemetry()
.report_app_event("create ssh project".to_string());
workspace
})
})
.log_err();