"use strict";
/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Tools
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClearKeyinPaletteHistoryTool = void 0;
const KeyinPalettePanel_1 = require("../popup/KeyinPalettePanel");
const core_frontend_1 = require("@itwin/core-frontend");
const remove_svg_1 = require("@bentley/icons-generic/icons/remove.svg");
/**
 * Immediate tool that will clear the recent history of command/tool keyins shown in
 * the command palette.
 * @alpha
 */
class ClearKeyinPaletteHistoryTool extends core_frontend_1.Tool {
    // istanbul ignore next
    static get minArgs() {
        return 0;
    }
    // istanbul ignore next
    static get maxArgs() {
        return 0;
    }
    async run() {
        (0, KeyinPalettePanel_1.clearKeyinPaletteHistory)();
        return true;
    }
}
ClearKeyinPaletteHistoryTool.toolId = "ClearKeyinPaletteHistory";
ClearKeyinPaletteHistoryTool.iconSpec = remove_svg_1.default;
exports.ClearKeyinPaletteHistoryTool = ClearKeyinPaletteHistoryTool;
//# sourceMappingURL=KeyinPaletteTools.js.map