Update Astra: v2.80.19 - Refactoring Sidebar, LM Studio integration, and new tests
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import * as vscode from 'vscode';
|
||||
|
||||
export interface IActivityTracker {
|
||||
onActivity: vscode.Event<void>;
|
||||
bump(): void;
|
||||
}
|
||||
|
||||
export class ActivityTracker implements IActivityTracker {
|
||||
private readonly _emitter = new vscode.EventEmitter<void>();
|
||||
public readonly onActivity = this._emitter.event;
|
||||
|
||||
bump(): void {
|
||||
this._emitter.fire();
|
||||
}
|
||||
|
||||
dispose(): void {
|
||||
this._emitter.dispose();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user