@@ -126,17 +126,20 @@ export async function activate(context: vscode.ExtensionContext) {
126126 telemetryService ?. sendTelemetryException ( e ) ;
127127 throw e ;
128128 } finally {
129- const activateProperties = {
129+ const rawActivateProperties = {
130130 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 ,
132132 workspaceId : remoteConnectionInfo ?. connectionInfo . workspaceId || '' ,
133133 instanceId : remoteConnectionInfo ?. connectionInfo . instanceId || '' ,
134134 gitpodHost : remoteConnectionInfo ?. connectionInfo . gitpodHost || '' ,
135135 debugWorkspace : remoteConnectionInfo ? String ( ! ! remoteConnectionInfo . connectionInfo . debugWorkspace ) : '' ,
136136 success : String ( success )
137137 } ;
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+ } ) ;
140143 }
141144}
142145
0 commit comments