@@ -126,17 +126,20 @@ export async function activate(context: vscode.ExtensionContext) {
126
126
telemetryService ?. sendTelemetryException ( e ) ;
127
127
throw e ;
128
128
} finally {
129
- const activateProperties = {
129
+ const rawActivateProperties = {
130
130
remoteName : vscode . env . remoteName || '' ,
131
- remoteUri : String ( ! ! ( vscode . workspace . workspaceFile || vscode . workspace . workspaceFolders ?. [ 0 ] . uri ) ) ,
131
+ remoteUri : vscode . workspace . workspaceFile || vscode . workspace . workspaceFolders ?. [ 0 ] . uri ,
132
132
workspaceId : remoteConnectionInfo ?. connectionInfo . workspaceId || '' ,
133
133
instanceId : remoteConnectionInfo ?. connectionInfo . instanceId || '' ,
134
134
gitpodHost : remoteConnectionInfo ?. connectionInfo . gitpodHost || '' ,
135
135
debugWorkspace : remoteConnectionInfo ? String ( ! ! remoteConnectionInfo . connectionInfo . debugWorkspace ) : '' ,
136
136
success : String ( success )
137
137
} ;
138
- logger ?. info ( 'Activation properties:' , JSON . stringify ( activateProperties , undefined , 2 ) ) ;
139
- telemetryService ?. sendTelemetryEvent ( 'vscode_desktop_activate' , activateProperties ) ;
138
+ logger ?. info ( 'Activation properties:' , JSON . stringify ( rawActivateProperties , undefined , 2 ) ) ;
139
+ telemetryService ?. sendTelemetryEvent ( 'vscode_desktop_activate' , {
140
+ ...rawActivateProperties ,
141
+ remoteUri : String ( ! ! rawActivateProperties . remoteUri )
142
+ } ) ;
140
143
}
141
144
}
142
145
0 commit comments