1 import { Command } from "./command.mjs";
2 import Logger from "../logger.mjs";
3 import GithubApiCache from "../utils/githubApiCache.mjs";
4 import { window } from "vscode";
6 export default class ClearGithubApiCacheCommand extends Command {
7 private _logger: Logger = new Logger("ClearGithubApiCacheCommand");
10 super("clearGithubApiCache");
13 async execute(): Promise<void> {
14 this._logger.info("Clearing Github API cache...");
16 await GithubApiCache.getInstance().clear();
18 await window.showInformationMessage("Github API cache cleared.");