@@ -13,7 +13,7 @@ import { exportLogs } from './exportLogs';
13
13
import GitpodServer from './gitpodServer' ;
14
14
import { NotificationService } from './notification' ;
15
15
import { ReleaseNotes } from './releaseNotes' ;
16
- import RemoteConnector from './remoteConnector' ;
16
+ import { RemoteConnector , getGitpodRemoteWindow } from './remoteConnector' ;
17
17
import { SettingsSync } from './settingsSync' ;
18
18
import TelemetryReporter from './telemetryReporter' ;
19
19
@@ -92,6 +92,16 @@ export async function activate(context: vscode.ExtensionContext) {
92
92
await context . globalState . update ( FIRST_INSTALL_KEY , true ) ;
93
93
telemetry . sendTelemetryEvent ( 'gitpod_desktop_installation' , { kind : 'install' } ) ;
94
94
}
95
+
96
+ const remoteConnectionInfo = getGitpodRemoteWindow ( context ) ;
97
+ telemetry . sendTelemetryEvent ( 'vscode_desktop_activate' , {
98
+ remoteName : vscode . env . remoteName || '' ,
99
+ remoteUri : String ( ! ! ( vscode . workspace . workspaceFile || vscode . workspace . workspaceFolders ?. [ 0 ] . uri ) ) ,
100
+ workspaceId : remoteConnectionInfo ?. connectionInfo . workspaceId || '' ,
101
+ instanceId : remoteConnectionInfo ?. connectionInfo . instanceId || '' ,
102
+ gitpodHost : remoteConnectionInfo ?. connectionInfo . gitpodHost || '' ,
103
+ debugWorkspace : remoteConnectionInfo ? String ( ! ! remoteConnectionInfo . connectionInfo . debugWorkspace ) : '' ,
104
+ } ) ;
95
105
}
96
106
97
107
export async function deactivate ( ) {
0 commit comments