import { vscodeExtMethods, handleTaonRedirect, vscodePatchingCodium, } from './index';
import { executeCommand } from 'tnp-helpers/lib'; // @backend
const FRAMEWORK_NAME = 'tnp';
import * as menu from './lib/vscode-ext-menu';
const commands = vscodeExtMethods(FRAMEWORK_NAME);
export async function activate(context) {
    const vscode = await import('vscode');
    vscodePatchingCodium(context, vscode, FRAMEWORK_NAME);
    handleTaonRedirect(context, vscode);
    menu.activateMenuTnp(context, vscode, FRAMEWORK_NAME);
    //#region @backendFunc
    for (let index = 0; index < commands.length; index++) {
        const { title, command = '', exec = '', options, isDefaultBuildCommand, } = commands[index];
        const sub = executeCommand(title, command, exec, options, isDefaultBuildCommand, context);
        if (sub) {
            context.subscriptions.push(sub);
        }
    }
    //#endregion
}
export function deactivate() {
    menu.deactivateMenuTnp();
}
export default { commands };
//# sourceMappingURL=app.vscode.js.map