@@ -32,56 +32,56 @@ export class HeartbeatManager extends Disposable {
32
32
private readonly telemetry : TelemetryReporter
33
33
) {
34
34
super ( ) ;
35
- this . _register ( vscode . window . onDidChangeActiveTextEditor ( this . updateLastActivitiy ( 'onDidChangeActiveTextEditor' ) , this ) ) ;
36
- this . _register ( vscode . window . onDidChangeVisibleTextEditors ( this . updateLastActivitiy ( 'onDidChangeVisibleTextEditors' ) , this ) ) ;
37
- this . _register ( vscode . window . onDidChangeTextEditorSelection ( this . updateLastActivitiy ( 'onDidChangeTextEditorSelection' ) , this ) ) ;
38
- this . _register ( vscode . window . onDidChangeTextEditorVisibleRanges ( this . updateLastActivitiy ( 'onDidChangeTextEditorVisibleRanges' ) , this ) ) ;
39
- this . _register ( vscode . window . onDidChangeTextEditorOptions ( this . updateLastActivitiy ( 'onDidChangeTextEditorOptions' ) , this ) ) ;
40
- this . _register ( vscode . window . onDidChangeTextEditorViewColumn ( this . updateLastActivitiy ( 'onDidChangeTextEditorViewColumn' ) , this ) ) ;
41
- this . _register ( vscode . window . onDidChangeActiveTerminal ( this . updateLastActivitiy ( 'onDidChangeActiveTerminal' ) , this ) ) ;
42
- this . _register ( vscode . window . onDidOpenTerminal ( this . updateLastActivitiy ( 'onDidOpenTerminal' ) , this ) ) ;
43
- this . _register ( vscode . window . onDidCloseTerminal ( this . updateLastActivitiy ( 'onDidCloseTerminal' ) , this ) ) ;
44
- this . _register ( vscode . window . onDidChangeTerminalState ( this . updateLastActivitiy ( 'onDidChangeTerminalState' ) , this ) ) ;
45
- this . _register ( vscode . window . onDidChangeWindowState ( this . updateLastActivitiy ( 'onDidChangeWindowState' ) , this ) ) ;
46
- this . _register ( vscode . window . onDidChangeActiveColorTheme ( this . updateLastActivitiy ( 'onDidChangeActiveColorTheme' ) , this ) ) ;
47
- this . _register ( vscode . authentication . onDidChangeSessions ( this . updateLastActivitiy ( 'onDidChangeSessions' ) , this ) ) ;
48
- this . _register ( vscode . debug . onDidChangeActiveDebugSession ( this . updateLastActivitiy ( 'onDidChangeActiveDebugSession' ) , this ) ) ;
49
- this . _register ( vscode . debug . onDidStartDebugSession ( this . updateLastActivitiy ( 'onDidStartDebugSession' ) , this ) ) ;
50
- this . _register ( vscode . debug . onDidReceiveDebugSessionCustomEvent ( this . updateLastActivitiy ( 'onDidReceiveDebugSessionCustomEvent' ) , this ) ) ;
51
- this . _register ( vscode . debug . onDidTerminateDebugSession ( this . updateLastActivitiy ( 'onDidTerminateDebugSession' ) , this ) ) ;
52
- this . _register ( vscode . debug . onDidChangeBreakpoints ( this . updateLastActivitiy ( 'onDidChangeBreakpoints' ) , this ) ) ;
53
- this . _register ( vscode . extensions . onDidChange ( this . updateLastActivitiy ( 'onDidChange' ) , this ) ) ;
54
- this . _register ( vscode . languages . onDidChangeDiagnostics ( this . updateLastActivitiy ( 'onDidChangeDiagnostics' ) , this ) ) ;
55
- this . _register ( vscode . tasks . onDidStartTask ( this . updateLastActivitiy ( 'onDidStartTask' ) , this ) ) ;
56
- this . _register ( vscode . tasks . onDidStartTaskProcess ( this . updateLastActivitiy ( 'onDidStartTaskProcess' ) , this ) ) ;
57
- this . _register ( vscode . tasks . onDidEndTask ( this . updateLastActivitiy ( 'onDidEndTask' ) , this ) ) ;
58
- this . _register ( vscode . tasks . onDidEndTaskProcess ( this . updateLastActivitiy ( 'onDidEndTaskProcess' ) , this ) ) ;
59
- this . _register ( vscode . workspace . onDidChangeWorkspaceFolders ( this . updateLastActivitiy ( 'onDidChangeWorkspaceFolders' ) , this ) ) ;
60
- this . _register ( vscode . workspace . onDidOpenTextDocument ( this . updateLastActivitiy ( 'onDidOpenTextDocument' ) , this ) ) ;
61
- this . _register ( vscode . workspace . onDidCloseTextDocument ( this . updateLastActivitiy ( 'onDidCloseTextDocument' ) , this ) ) ;
62
- this . _register ( vscode . workspace . onDidChangeTextDocument ( this . updateLastActivitiy ( 'onDidChangeTextDocument' ) , this ) ) ;
63
- this . _register ( vscode . workspace . onDidSaveTextDocument ( this . updateLastActivitiy ( 'onDidSaveTextDocument' ) , this ) ) ;
64
- this . _register ( vscode . workspace . onDidChangeNotebookDocument ( this . updateLastActivitiy ( 'onDidChangeNotebookDocument' ) , this ) ) ;
65
- this . _register ( vscode . workspace . onDidSaveNotebookDocument ( this . updateLastActivitiy ( 'onDidSaveNotebookDocument' ) , this ) ) ;
66
- this . _register ( vscode . workspace . onDidOpenNotebookDocument ( this . updateLastActivitiy ( 'onDidOpenNotebookDocument' ) , this ) ) ;
67
- this . _register ( vscode . workspace . onDidCloseNotebookDocument ( this . updateLastActivitiy ( 'onDidCloseNotebookDocument' ) , this ) ) ;
68
- this . _register ( vscode . workspace . onWillCreateFiles ( this . updateLastActivitiy ( 'onWillCreateFiles' ) , this ) ) ;
69
- this . _register ( vscode . workspace . onDidCreateFiles ( this . updateLastActivitiy ( 'onDidCreateFiles' ) , this ) ) ;
70
- this . _register ( vscode . workspace . onWillDeleteFiles ( this . updateLastActivitiy ( 'onWillDeleteFiles' ) , this ) ) ;
71
- this . _register ( vscode . workspace . onDidDeleteFiles ( this . updateLastActivitiy ( 'onDidDeleteFiles' ) , this ) ) ;
72
- this . _register ( vscode . workspace . onWillRenameFiles ( this . updateLastActivitiy ( 'onWillRenameFiles' ) , this ) ) ;
73
- this . _register ( vscode . workspace . onDidRenameFiles ( this . updateLastActivitiy ( 'onDidRenameFiles' ) , this ) ) ;
74
- this . _register ( vscode . workspace . onDidChangeConfiguration ( this . updateLastActivitiy ( 'onDidChangeConfiguration' ) , this ) ) ;
35
+ this . _register ( vscode . window . onDidChangeActiveTextEditor ( this . updateLastActivity ( 'onDidChangeActiveTextEditor' ) , this ) ) ;
36
+ this . _register ( vscode . window . onDidChangeVisibleTextEditors ( this . updateLastActivity ( 'onDidChangeVisibleTextEditors' ) , this ) ) ;
37
+ this . _register ( vscode . window . onDidChangeTextEditorSelection ( this . updateLastActivity ( 'onDidChangeTextEditorSelection' ) , this ) ) ;
38
+ this . _register ( vscode . window . onDidChangeTextEditorVisibleRanges ( this . updateLastActivity ( 'onDidChangeTextEditorVisibleRanges' ) , this ) ) ;
39
+ this . _register ( vscode . window . onDidChangeTextEditorOptions ( this . updateLastActivity ( 'onDidChangeTextEditorOptions' ) , this ) ) ;
40
+ this . _register ( vscode . window . onDidChangeTextEditorViewColumn ( this . updateLastActivity ( 'onDidChangeTextEditorViewColumn' ) , this ) ) ;
41
+ this . _register ( vscode . window . onDidChangeActiveTerminal ( this . updateLastActivity ( 'onDidChangeActiveTerminal' ) , this ) ) ;
42
+ this . _register ( vscode . window . onDidOpenTerminal ( this . updateLastActivity ( 'onDidOpenTerminal' ) , this ) ) ;
43
+ this . _register ( vscode . window . onDidCloseTerminal ( this . updateLastActivity ( 'onDidCloseTerminal' ) , this ) ) ;
44
+ this . _register ( vscode . window . onDidChangeTerminalState ( this . updateLastActivity ( 'onDidChangeTerminalState' ) , this ) ) ;
45
+ this . _register ( vscode . window . onDidChangeWindowState ( this . updateLastActivity ( 'onDidChangeWindowState' ) , this ) ) ;
46
+ this . _register ( vscode . window . onDidChangeActiveColorTheme ( this . updateLastActivity ( 'onDidChangeActiveColorTheme' ) , this ) ) ;
47
+ this . _register ( vscode . authentication . onDidChangeSessions ( this . updateLastActivity ( 'onDidChangeSessions' ) , this ) ) ;
48
+ this . _register ( vscode . debug . onDidChangeActiveDebugSession ( this . updateLastActivity ( 'onDidChangeActiveDebugSession' ) , this ) ) ;
49
+ this . _register ( vscode . debug . onDidStartDebugSession ( this . updateLastActivity ( 'onDidStartDebugSession' ) , this ) ) ;
50
+ this . _register ( vscode . debug . onDidReceiveDebugSessionCustomEvent ( this . updateLastActivity ( 'onDidReceiveDebugSessionCustomEvent' ) , this ) ) ;
51
+ this . _register ( vscode . debug . onDidTerminateDebugSession ( this . updateLastActivity ( 'onDidTerminateDebugSession' ) , this ) ) ;
52
+ this . _register ( vscode . debug . onDidChangeBreakpoints ( this . updateLastActivity ( 'onDidChangeBreakpoints' ) , this ) ) ;
53
+ this . _register ( vscode . extensions . onDidChange ( this . updateLastActivity ( 'onDidChange' ) , this ) ) ;
54
+ this . _register ( vscode . languages . onDidChangeDiagnostics ( this . updateLastActivity ( 'onDidChangeDiagnostics' ) , this ) ) ;
55
+ this . _register ( vscode . tasks . onDidStartTask ( this . updateLastActivity ( 'onDidStartTask' ) , this ) ) ;
56
+ this . _register ( vscode . tasks . onDidStartTaskProcess ( this . updateLastActivity ( 'onDidStartTaskProcess' ) , this ) ) ;
57
+ this . _register ( vscode . tasks . onDidEndTask ( this . updateLastActivity ( 'onDidEndTask' ) , this ) ) ;
58
+ this . _register ( vscode . tasks . onDidEndTaskProcess ( this . updateLastActivity ( 'onDidEndTaskProcess' ) , this ) ) ;
59
+ this . _register ( vscode . workspace . onDidChangeWorkspaceFolders ( this . updateLastActivity ( 'onDidChangeWorkspaceFolders' ) , this ) ) ;
60
+ this . _register ( vscode . workspace . onDidOpenTextDocument ( this . updateLastActivity ( 'onDidOpenTextDocument' ) , this ) ) ;
61
+ this . _register ( vscode . workspace . onDidCloseTextDocument ( this . updateLastActivity ( 'onDidCloseTextDocument' ) , this ) ) ;
62
+ this . _register ( vscode . workspace . onDidChangeTextDocument ( this . updateLastActivity ( 'onDidChangeTextDocument' ) , this ) ) ;
63
+ this . _register ( vscode . workspace . onDidSaveTextDocument ( this . updateLastActivity ( 'onDidSaveTextDocument' ) , this ) ) ;
64
+ this . _register ( vscode . workspace . onDidChangeNotebookDocument ( this . updateLastActivity ( 'onDidChangeNotebookDocument' ) , this ) ) ;
65
+ this . _register ( vscode . workspace . onDidSaveNotebookDocument ( this . updateLastActivity ( 'onDidSaveNotebookDocument' ) , this ) ) ;
66
+ this . _register ( vscode . workspace . onDidOpenNotebookDocument ( this . updateLastActivity ( 'onDidOpenNotebookDocument' ) , this ) ) ;
67
+ this . _register ( vscode . workspace . onDidCloseNotebookDocument ( this . updateLastActivity ( 'onDidCloseNotebookDocument' ) , this ) ) ;
68
+ this . _register ( vscode . workspace . onWillCreateFiles ( this . updateLastActivity ( 'onWillCreateFiles' ) , this ) ) ;
69
+ this . _register ( vscode . workspace . onDidCreateFiles ( this . updateLastActivity ( 'onDidCreateFiles' ) , this ) ) ;
70
+ this . _register ( vscode . workspace . onWillDeleteFiles ( this . updateLastActivity ( 'onWillDeleteFiles' ) , this ) ) ;
71
+ this . _register ( vscode . workspace . onDidDeleteFiles ( this . updateLastActivity ( 'onDidDeleteFiles' ) , this ) ) ;
72
+ this . _register ( vscode . workspace . onWillRenameFiles ( this . updateLastActivity ( 'onWillRenameFiles' ) , this ) ) ;
73
+ this . _register ( vscode . workspace . onDidRenameFiles ( this . updateLastActivity ( 'onDidRenameFiles' ) , this ) ) ;
74
+ this . _register ( vscode . workspace . onDidChangeConfiguration ( this . updateLastActivity ( 'onDidChangeConfiguration' ) , this ) ) ;
75
75
this . _register ( vscode . languages . registerHoverProvider ( '*' , {
76
76
provideHover : ( ) => {
77
- this . updateLastActivitiy ( 'registerHoverProvider' ) ( ) ;
77
+ this . updateLastActivity ( 'registerHoverProvider' ) ( ) ;
78
78
return null ;
79
79
}
80
80
} ) ) ;
81
81
82
82
this . logger . trace ( `Heartbeat manager for workspace ${ workspaceId } (${ instanceId } ) - ${ gitpodHost } started` ) ;
83
83
84
- // Start heatbeating interval
84
+ // Start heartbeating interval
85
85
this . sendHeartBeat ( ) ;
86
86
this . heartBeatHandle = setInterval ( ( ) => {
87
87
// Add an additional random value between 5 and 15 seconds. See https://github.com/gitpod-io/gitpod/pull/5613
@@ -95,7 +95,7 @@ export class HeartbeatManager extends Disposable {
95
95
} , HeartbeatManager . HEARTBEAT_INTERVAL ) ;
96
96
}
97
97
98
- private updateLastActivitiy ( event : string ) {
98
+ private updateLastActivity ( event : string ) {
99
99
return ( ) => {
100
100
this . lastActivity = new Date ( ) . getTime ( ) ;
101
101
this . lastActivityEvent = event ;
0 commit comments