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();
    }
}
