aboutsummaryrefslogtreecommitdiffstats
path: root/qt-qml/src/commands/reset.ts
blob: aaae82b95180a0d4e2c1c01719bfa0e3aff85024 (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 { projectManager } from '@/extension';
import { EXTENSION_ID } from '@/constants';

function reset() {
  void projectManager.restartQmlls();
}

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