File tree 2 files changed +2
-20
lines changed
extensions/gitpod-shared/src
2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,7 @@ interface GAET<N extends string, P> {
21
21
22
22
23
23
export type GitpodAnalyticsEvent =
24
- GAET < 'vscode_session' , {
25
- phase : 'start' | 'running' | 'end'
26
- focused : boolean
27
- } > |
24
+ GAET < 'vscode_session' , { } > |
28
25
GAET < 'vscode_execute_command_gitpod_open_link' , {
29
26
url : string
30
27
} > |
Original file line number Diff line number Diff line change @@ -37,21 +37,6 @@ export async function setupGitpodContext(context: vscode.ExtensionContext): Prom
37
37
}
38
38
39
39
function registerUsageAnalytics ( context : GitpodExtensionContext ) : void {
40
- context . fireAnalyticsEvent ( {
41
- eventName : 'vscode_session' ,
42
- properties : { phase : 'start' , focused : vscode . window . state . focused }
43
- } ) ;
44
- context . subscriptions . push ( vscode . window . onDidChangeWindowState ( ( ) =>
45
- context . fireAnalyticsEvent ( {
46
- eventName : 'vscode_session' ,
47
- properties : { phase : 'running' , focused : vscode . window . state . focused }
48
- } )
49
- ) ) ;
50
- context . pendingWillCloseSocket . push ( ( ) =>
51
- context . fireAnalyticsEvent ( {
52
- eventName : 'vscode_session' ,
53
- properties : { phase : 'end' , focused : vscode . window . state . focused } ,
54
- } )
55
- ) ;
40
+ context . fireAnalyticsEvent ( { eventName : 'vscode_session' , properties : { } } ) ;
56
41
}
57
42
You can’t perform that action at this time.
0 commit comments