// The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below import * as vscode from 'vscode'; import * as kanbanHelper from './kanbanHelper'; import * as markdownHelper from './markdownHelper'; import * as promiseLinesHelper from './promiseLinesHelper'; import * as replaceLinesHelper from './replaceLinesHelper'; import * as readOnlyLinesHelper from './readOnlyLinesHelper'; import { WebViewPanel, refreshWebView } from "./WebViewPanel"; import { ColumnsToCardsWebviewViewProvider, refreshSidebar } from "./ColumnsToCardsWebviewViewProvider"; // This method is called when your extension is activated // Your extension is activated the very first time the command is executed export async function activate(extensionContext: vscode.ExtensionContext) { const columnsToCardsWebviewViewProvider = new ColumnsToCardsWebviewViewProvider(extensionContext); const item = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right); item.text = "$(beaker) Show Kanban"; // item.command = "kanban.show"; item.show(); extensionContext.subscriptions.push(vscode.window.registerWebviewViewProvider("columns-to-cards-webview-view-provider", columnsToCardsWebviewViewProvider)); // Use the console to output diagnostic information (console.log) and errors (console.error) // This line of code will only be executed once when your extension is activated console.log('Congratulations, your extension "type-script-helper" is now active!'); // // The command has been defined in the package.json file // // Now provide the implementation of the command with registerCommand // // The commandId parameter must match the command field in package.json // let disposable = vscode.commands.registerCommand('type-script-helper.helloWorld', () => { // // The code you place here will be executed every time your command is executed // // Display a message box to the user // vscode.window.showInformationMessage('Hello World from type-script-helper!'); // }); // context.subscriptions.push(disposable); const commands = [ vscode.commands.registerCommand("kanban.refreshBoth", () => { kanbanHelper.refreshBoth(extensionContext); }), vscode.commands.registerCommand("kanban.refreshSidebar", refreshSidebar), vscode.commands.registerCommand("kanban.refreshWebView", () => { refreshWebView(extensionContext); }), vscode.commands.registerCommand("markdown.newMarkdownFile", markdownHelper.newMarkdownFile), vscode.commands.registerCommand('promiseLinesHelper.codeGeneratorQuickPick', promiseLinesHelper.codeGeneratorQuickPick), vscode.commands.registerCommand('promiseLinesHelper.insertDateTime', promiseLinesHelper.insertDateTime), vscode.commands.registerCommand('promiseLinesHelper.transformToPopperCase', promiseLinesHelper.transformToPopperCase), vscode.commands.registerCommand('promiseLinesHelper.transformToParamCase', promiseLinesHelper.transformToParamCase), vscode.commands.registerCommand('readOnlyLinesHelper.searchGoogle', readOnlyLinesHelper.searchGoogle), vscode.commands.registerCommand('replaceLinesHelper.addCSharpComment', replaceLinesHelper.addCSharpComment), vscode.commands.registerCommand('replaceLinesHelper.addVBComment', replaceLinesHelper.addVBComment), vscode.commands.registerCommand('replaceLinesHelper.convertToRegularExpression', replaceLinesHelper.convertToRegularExpression), vscode.commands.registerCommand('replaceLinesHelper.cutEachLine', replaceLinesHelper.cutEachLine), vscode.commands.registerCommand('replaceLinesHelper.distinctLines', replaceLinesHelper.distinctLines), vscode.commands.registerCommand('replaceLinesHelper.expandSql', replaceLinesHelper.expandSql), vscode.commands.registerCommand('replaceLinesHelper.listToListFamily', replaceLinesHelper.listToListFamily), vscode.commands.registerCommand('replaceLinesHelper.listToListWrappedComma', replaceLinesHelper.listToListWrappedComma), vscode.commands.registerCommand('replaceLinesHelper.prettySql', replaceLinesHelper.prettySql), vscode.commands.registerCommand('replaceLinesHelper.quickFixCamelCaseProperties', replaceLinesHelper.quickFixCamelCaseProperties), vscode.commands.registerCommand('replaceLinesHelper.quickFixCS0108', replaceLinesHelper.quickFixCS0108), vscode.commands.registerCommand('replaceLinesHelper.quickFixInstanceFieldToCalisthenics', replaceLinesHelper.quickFixInstanceFieldToCalisthenics), vscode.commands.registerCommand('replaceLinesHelper.quickFixProperCaseProperties', replaceLinesHelper.quickFixProperCaseProperties), vscode.commands.registerCommand('replaceLinesHelper.quickFixPublic', replaceLinesHelper.quickFixPublic), vscode.commands.registerCommand('replaceLinesHelper.removeComment', replaceLinesHelper.removeComment), vscode.commands.registerCommand('replaceLinesHelper.sortLength', replaceLinesHelper.sortLength), vscode.commands.registerCommand('replaceLinesHelper.sortNormal', replaceLinesHelper.sortNormal), vscode.commands.registerCommand('replaceLinesHelper.splitBySpaceReverseJoinSort', replaceLinesHelper.splitBySpaceReverseJoinSort), vscode.commands.registerCommand('replaceLinesHelper.unwrapSql', replaceLinesHelper.unwrapSql), vscode.commands.registerCommand('replaceLinesHelper.wrapSqlCSharp', replaceLinesHelper.wrapSqlCSharp), vscode.commands.registerCommand('replaceLinesHelper.wrapSqlVB', replaceLinesHelper.wrapSqlVB), vscode.commands.registerCommand("webView.webView", () => { WebViewPanel.createOrShow(extensionContext); }) ]; commands.forEach(command => extensionContext.subscriptions.push(command)); } // This method is called when your extension is deactivated export function deactivate() { }