Skip to content

Commit 437b823

Browse files
mustard-mhjeanp413
authored andcommitted
Remove vscode_session phase running end
1 parent cf2d36e commit 437b823

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

extensions/gitpod-shared/src/analytics.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ interface GAET<N extends string, P> {
2121

2222

2323
export type GitpodAnalyticsEvent =
24-
GAET<'vscode_session', {
25-
phase: 'start' | 'running' | 'end'
26-
focused: boolean
27-
}> |
24+
GAET<'vscode_session', {}> |
2825
GAET<'vscode_execute_command_gitpod_open_link', {
2926
url: string
3027
}> |

extensions/gitpod-shared/src/extension.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,6 @@ export async function setupGitpodContext(context: vscode.ExtensionContext): Prom
3737
}
3838

3939
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: {} });
5641
}
5742

0 commit comments

Comments
 (0)