]> Git Repo - pico-vscode.git/blob - src/commands/clearGithubApiCache.mts
Add support for cmake-tools extension
[pico-vscode.git] / src / commands / clearGithubApiCache.mts
1 import { Command } from "./command.mjs";
2 import Logger from "../logger.mjs";
3 import GithubApiCache from "../utils/githubApiCache.mjs";
4 import { window } from "vscode";
5
6 export default class ClearGithubApiCacheCommand extends Command {
7   private _logger: Logger = new Logger("ClearGithubApiCacheCommand");
8
9   constructor() {
10     super("clearGithubApiCache");
11   }
12
13   async execute(): Promise<void> {
14     this._logger.info("Clearing Github API cache...");
15
16     await GithubApiCache.getInstance().clear();
17
18     await window.showInformationMessage("Github API cache cleared.");
19   }
20 }
This page took 0.02984 seconds and 4 git commands to generate.