aboutsummaryrefslogtreecommitdiffstats
path: root/qt-cpp/src/commands/reset-qt-ext.ts
blob: 23c46daa216fcb1eca206c4dd6fdf41a06cf6025 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only

import * as vscode from 'vscode';

import { kitManager } from '@/extension';
import { EXTENSION_ID } from '@/constants';

async function reset() {
  await kitManager.reset();
}

export function registerResetCommand() {
  return vscode.commands.registerCommand(`${EXTENSION_ID}.reset`, reset);
}