import * as vscode from 'vscode';
import { LauncherViewProvider } from './launcherView';
import { openPlecUpload } from './tools/plecUpload';
import { openApplovinUpload } from './tools/applovinUpload';
import { openBase64Scanner } from './tools/base64Scanner';
import { openMraidChecker } from './tools/mraidChecker';
import { openSendToMobile } from './tools/sendToMobile';
import { openPlayworksConverter } from './tools/playworksConverter';
import { openMintegralChecker } from './tools/mintegralChecker';
import { openChangelog } from './changelogView';

export function activate(context: vscode.ExtensionContext) {
  context.subscriptions.push(
    vscode.commands.registerCommand('hplToolbox.openPlecUpload', () => openPlecUpload(context)),
    vscode.commands.registerCommand('hplToolbox.openApplovinUpload', () => openApplovinUpload(context)),
    vscode.commands.registerCommand('hplToolbox.openBase64Scanner', () => openBase64Scanner(context)),
    vscode.commands.registerCommand('hplToolbox.openMraidChecker', () => openMraidChecker(context)),
    vscode.commands.registerCommand('hplToolbox.openSendToMobile', () => openSendToMobile(context)),
    vscode.commands.registerCommand('hplToolbox.openPlayworksConverter', () => openPlayworksConverter(context)),
    vscode.commands.registerCommand('hplToolbox.openMintegralChecker', () => openMintegralChecker(context)),
    vscode.commands.registerCommand('hplToolbox.openChangelog', () => openChangelog(context)),
    vscode.window.registerWebviewViewProvider('hplToolbox.launcher', new LauncherViewProvider(context))
  );
}

export function deactivate() {}
