Skip to content

Commit 6192dd1

Browse files
committed
f: fix latest warning, add tracking
1 parent ad17be1 commit 6192dd1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

components/server/src/workspace/workspace-starter.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,7 @@ export class WorkspaceStarter {
647647
log.info({ choose }, "ide choose");
648648
configuration.ideImage = choose.ideImage;
649649
configuration.desktopIdeImage = choose.desktopIdeImage;
650+
configuration.ideConfig!.useLatest = workspace.context.useLatest ?? false;
650651
}
651652

652653
const referrerIde = this.resolveReferrerIDE(workspace, user, ideConfig);
@@ -718,6 +719,18 @@ export class WorkspaceStarter {
718719
referrerIde: workspace.context.referrerIde,
719720
},
720721
});
722+
} else if (WithEditorContext.is(workspace.context)) {
723+
this.analytics.track({
724+
userId: user.id,
725+
event: "custom_editor_referrer",
726+
properties: {
727+
workspaceId: workspace.id,
728+
instanceId: instance.id,
729+
ide: workspace.context.ide,
730+
referrer: workspace.context.referrer,
731+
useLatest: workspace.context.useLatest,
732+
},
733+
});
721734
}
722735
return instance;
723736
}

0 commit comments

Comments
 (0)