Report editor open and save events to Amplitude
Co-authored-by: Max Brunsfeld <max@zed.dev>
This commit is contained in:
parent
f0c50c1e0a
commit
824fdb54e6
8 changed files with 137 additions and 35 deletions
|
@ -121,7 +121,6 @@ fn main() {
|
|||
vim::init(cx);
|
||||
terminal::init(cx);
|
||||
|
||||
let db = cx.background().block(db);
|
||||
cx.spawn(|cx| watch_themes(fs.clone(), themes.clone(), cx))
|
||||
.detach();
|
||||
|
||||
|
@ -139,6 +138,10 @@ fn main() {
|
|||
})
|
||||
.detach();
|
||||
|
||||
let db = cx.background().block(db);
|
||||
client.start_telemetry(db.clone());
|
||||
client.report_event("start app", Default::default());
|
||||
|
||||
let project_store = cx.add_model(|_| ProjectStore::new(db.clone()));
|
||||
let app_state = Arc::new(AppState {
|
||||
languages,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue