@@ -71,8 +71,8 @@ export async function activate(context: vscode.ExtensionContext) {
71
71
72
72
//#region server connection
73
73
const factory = new JsonRpcProxyFactory < GitpodServer > ( ) ;
74
- type UsedGitpodFunction = [ 'getWorkspace' , 'openPort' , 'stopWorkspace' , 'setWorkspaceTimeout' , 'getWorkspaceTimeout' , 'getLoggedInUser' , 'takeSnapshot' , 'controlAdmission' , 'sendHeartBeat' ] ;
75
- const gitpodFunctions : UsedGitpodFunction = [ 'getWorkspace' , 'openPort' , 'stopWorkspace' , 'setWorkspaceTimeout' , 'getWorkspaceTimeout' , 'getLoggedInUser' , 'takeSnapshot' , 'controlAdmission' , 'sendHeartBeat' ] ;
74
+ type UsedGitpodFunction = [ 'getWorkspace' , 'openPort' , 'stopWorkspace' , 'setWorkspaceTimeout' , 'getWorkspaceTimeout' , 'getLoggedInUser' , 'takeSnapshot' , 'controlAdmission' , 'sendHeartBeat' , 'trackEvent' ] ;
75
+ const gitpodFunctions : UsedGitpodFunction = [ 'getWorkspace' , 'openPort' , 'stopWorkspace' , 'setWorkspaceTimeout' , 'getWorkspaceTimeout' , 'getLoggedInUser' , 'takeSnapshot' , 'controlAdmission' , 'sendHeartBeat' , 'trackEvent' ] ;
76
76
type Union < Tuple extends any [ ] , Union = never > = Tuple [ number ] | Union ;
77
77
const gitpodService : Omit < GitpodServiceImpl < GitpodClient , GitpodServer > , 'server' > & {
78
78
server : Pick < GitpodServer , Union < UsedGitpodFunction > >
@@ -147,6 +147,14 @@ export async function activate(context: vscode.ExtensionContext) {
147
147
vscode . commands . executeCommand ( 'setContext' , 'gitpod.workspaceOwned' , workspaceOwned ) ;
148
148
return workspaceOwned ;
149
149
} ) ( ) ;
150
+
151
+ gitpodService . server . trackEvent ( {
152
+ event : 'status_rendered' ,
153
+ properties : {
154
+ workspaceId,
155
+ phase : 'vsc_opened' ,
156
+ }
157
+ } ) . catch ( console . error ) ;
150
158
//#endregion
151
159
152
160
//#region workspace commands
@@ -216,6 +224,7 @@ export async function activate(context: vscode.ExtensionContext) {
216
224
}
217
225
} ) ) ;
218
226
} ) ( ) ;
227
+ //#endregion
219
228
220
229
//#region workspace sharing
221
230
( async ( ) => {
0 commit comments