Spaces:
No application file
No application file
Download a843a8e2/out/extension.js from WealthFromAI/ai-git-commit-message-generator-vs-code-extension-a843: direct link, hf CLI and curl.
- Browser
- Download file 3.19 kB
-
https://huggingface.co/spaces/WealthFromAI/ai-git-commit-message-generator-vs-code-extension-a843/resolve/main/a843a8e2/out/extension.js
- Command line
-
hf download hf://spaces/WealthFromAI/ai-git-commit-message-generator-vs-code-extension-a843/a843a8e2/out/extension.js
-
curl -L -o extension.js https://huggingface.co/spaces/WealthFromAI/ai-git-commit-message-generator-vs-code-extension-a843/resolve/main/a843a8e2/out/extension.js
3.19 kB
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.activate = activate; | |
| exports.deactivate = deactivate; | |
| const vscode = require("vscode"); | |
| /** | |
| * AI Git Commit Message Generator VS Code Extension | |
| * | |
| * Features: | |
| */ | |
| let outputChannel; | |
| let statusBarItem; | |
| function activate(context) { | |
| outputChannel = vscode.window.createOutputChannel('AI Git Commit Message Generator VS Code Extension'); | |
| outputChannel.appendLine(`AI Git Commit Message Generator VS Code Extension v1.0.0 activated`); | |
| // Status bar | |
| statusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 100); | |
| statusBarItem.text = '$(zap) a843a8e2'; | |
| statusBarItem.tooltip = 'AI Git Commit Message Generator VS Code Extension'; | |
| statusBarItem.command = 'a843a8e2.activate'; | |
| statusBarItem.show(); | |
| context.subscriptions.push(statusBarItem); | |
| // Register commands | |
| let cmd0 = vscode.commands.registerCommand('a843a8e2.activate', () => { | |
| vscode.window.showInformationMessage('AI Git Commit Message Generator VS Code Extension: AI Git Commit Message Generator VS Code Extension: Activate executed'); | |
| outputChannel.appendLine(`[INFO] Command executed: AI Git Commit Message Generator VS Code Extension: Activate`); | |
| }); | |
| let cmd1 = vscode.commands.registerCommand('a843a8e2.settings', () => { | |
| vscode.window.showInformationMessage('AI Git Commit Message Generator VS Code Extension: AI Git Commit Message Generator VS Code Extension: Open Settings executed'); | |
| outputChannel.appendLine(`[INFO] Command executed: AI Git Commit Message Generator VS Code Extension: Open Settings`); | |
| }); | |
| let cmd2 = vscode.commands.registerCommand('a843a8e2.run', () => { | |
| vscode.window.showInformationMessage('AI Git Commit Message Generator VS Code Extension: AI Git Commit Message Generator VS Code Extension: Run executed'); | |
| outputChannel.appendLine(`[INFO] Command executed: AI Git Commit Message Generator VS Code Extension: Run`); | |
| }); | |
| context.subscriptions.push(cmd0); | |
| context.subscriptions.push(cmd1); | |
| context.subscriptions.push(cmd2); | |
| // Configuration change listener | |
| context.subscriptions.push( | |
| vscode.workspace.onDidChangeConfiguration(e => { | |
| if (e.affectsConfiguration('a843a8e2')) { | |
| const config = vscode.workspace.getConfiguration('a843a8e2'); | |
| const enabled = config.get('enabled', true); | |
| if (enabled) { | |
| statusBarItem.show(); | |
| } else { | |
| statusBarItem.hide(); | |
| } | |
| outputChannel.appendLine(`[INFO] Configuration updated`); | |
| } | |
| }) | |
| ); | |
| outputChannel.appendLine(`[INFO] AI Git Commit Message Generator VS Code Extension ready`); | |
| vscode.window.showInformationMessage('AI Git Commit Message Generator VS Code Extension is now active!'); | |
| } | |
| function deactivate() { | |
| outputChannel?.appendLine('AI Git Commit Message Generator VS Code Extension deactivated'); | |
| outputChannel?.dispose(); | |
| statusBarItem?.dispose(); | |
| } | |