Spaces:
No application file
No application file
FORGE-X: Upload source (a15b5865-vscode-extension.zip)
Browse files- README.md +90 -6
- a15b5865/CHANGELOG.md +4 -0
- a15b5865/LICENSE +3 -0
- a15b5865/README.md +46 -0
- a15b5865/out/extension.js +70 -0
- a15b5865/package.json +97 -0
- a15b5865/src/extension.ts +66 -0
- a15b5865/tsconfig.json +17 -0
README.md
CHANGED
|
@@ -1,13 +1,97 @@
|
|
| 1 |
---
|
| 2 |
-
title: Tailwind
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: blue
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
-
python_version: '3.13'
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
|
|
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: "Tailwind CSS Design System Manager VS Code Extension"
|
| 3 |
+
emoji: 🎨
|
| 4 |
+
colorFrom: yellow
|
| 5 |
colorTo: blue
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
+
tags:
|
| 12 |
+
- frontend
|
| 13 |
+
- web-development
|
| 14 |
+
- javascript
|
| 15 |
+
- react
|
| 16 |
+
- tailwind
|
| 17 |
+
- css
|
| 18 |
+
- design
|
| 19 |
+
- system
|
| 20 |
+
- manager
|
| 21 |
---
|
| 22 |
+
# Tailwind CSS Design System Manager VS Code Extension
|
| 23 |
|
| 24 |
+
Your Tailwind config is scattered across files, your design tokens live in comments, and your team keeps reinventing the same components. The Tailwind CSS Design System Manager VS Code Extension centralizes everything you need in one place—right inside your editor.
|
| 25 |
+
|
| 26 |
+
Stop wasting time hunting through documentation and duplicating styles. This extension transforms your Tailwind CSS workflow by providing a unified design system hub that syncs tokens, components, and constraints directly in VS Code. Build faster, maintain consistency, and scale your design system without leaving your editor.
|
| 27 |
+
|
| 28 |
+
## What's Included
|
| 29 |
+
|
| 30 |
+
- Centralized Design Token Management — organize, visualize, and sync all your Tailwind colors, spacing, typography, and breakpoints in one dashboard
|
| 31 |
+
- Component Library Browser — instantly access and preview your custom UI components with live code snippets ready to copy
|
| 32 |
+
- Design System Sync — auto-detect and validate Tailwind configurations across your project for consistency
|
| 33 |
+
- One-Click Component Generation — create new components with auto-populated Tailwind classes based on your system rules
|
| 34 |
+
- Team Collaboration Mode — export and share design tokens as JSON/CSS variables across your entire frontend team
|
| 35 |
+
|
| 36 |
+
## Who Is This For
|
| 37 |
+
|
| 38 |
+
- Frontend developers managing large-scale Tailwind projects who need a single source of truth for design tokens
|
| 39 |
+
- Design system maintainers enforcing consistency across multiple teams and repositories
|
| 40 |
+
- Agencies building white-label products where design system reusability is critical
|
| 41 |
+
- Solo developers and startup teams scaling from prototype to production without design system chaos
|
| 42 |
+
|
| 43 |
+
## How It Works
|
| 44 |
+
|
| 45 |
+
Install the extension from VS Code marketplace, point it to your Tailwind config file, and the manager auto-indexes your entire design system. Browse tokens and components through an intuitive sidebar panel, generate new styles with one click, and sync changes across your project instantly.
|
| 46 |
+
|
| 47 |
+
## Frequently Asked Questions
|
| 48 |
+
|
| 49 |
+
**Does this work with existing Tailwind projects?**
|
| 50 |
+
Yes—it works with any Tailwind CSS v3+ project. Just install and point it to your tailwind.config.js file; it auto-detects your tokens.
|
| 51 |
+
|
| 52 |
+
**Can I export my design system?**
|
| 53 |
+
Absolutely. Export your design tokens as JSON, CSS variables, or Figma tokens format for seamless team collaboration.
|
| 54 |
+
|
| 55 |
+
**Does it slow down VS Code?**
|
| 56 |
+
No. The extension runs lightweight indexing and caches your design system for instant lookups without impacting editor performance.
|
| 57 |
+
|
| 58 |
+
**Is there a learning curve?**
|
| 59 |
+
Minimal. If you know Tailwind, you already understand the interface. It's designed to feel native to VS Code's sidebar.
|
| 60 |
+
|
| 61 |
+
**What if I use a custom Tailwind config with plugins?**
|
| 62 |
+
The manager fully supports custom configs and Tailwind plugins, parsing and organizing even complex setups automatically.
|
| 63 |
+
|
| 64 |
+
## What You Get
|
| 65 |
+
|
| 66 |
+
- Instant digital download
|
| 67 |
+
- Complete VS Code extension with full documentation
|
| 68 |
+
- Free updates for life — pay once, own forever
|
| 69 |
+
- Setup guide and usage instructions
|
| 70 |
+
|
| 71 |
+
**Get instant control over your Tailwind design system—buy the extension now and build your next project 10x faster.**
|
| 72 |
+
|
| 73 |
+
## 🚀 Usage
|
| 74 |
+
|
| 75 |
+
1. Click **Use in Spaces** above to run the demo directly
|
| 76 |
+
2. Or clone the repository and run locally:
|
| 77 |
+
|
| 78 |
+
```bash
|
| 79 |
+
git clone https://huggingface.co/spaces/WealthFromAI/tailwind-css-design-system-manager-vs-code-extension-a15b
|
| 80 |
+
cd tailwind-css-design-system-manager-vs-code-extension-a15b
|
| 81 |
+
pip install -r requirements.txt
|
| 82 |
+
python app.py
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
## 💰 Pricing
|
| 86 |
+
|
| 87 |
+
- **Demo**: Free on Hugging Face Spaces
|
| 88 |
+
- **Full Source Code**: $7.99
|
| 89 |
+
- Available on [Gumroad](https://gumroad.com) and [Whop](https://whop.com)
|
| 90 |
+
|
| 91 |
+
## 📄 License
|
| 92 |
+
|
| 93 |
+
MIT License — free to use, modify, and distribute.
|
| 94 |
+
|
| 95 |
+
---
|
| 96 |
+
|
| 97 |
+
*Built with [FORGE-X](https://github.com/WealthFromAI) — automated digital product engine*
|
a15b5865/CHANGELOG.md
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Changelog
|
| 2 |
+
|
| 3 |
+
## [1.0.0]
|
| 4 |
+
- Initial release of Tailwind CSS Design System Manager VS Code Extension
|
a15b5865/LICENSE
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2026 Digital Forge
|
a15b5865/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Tailwind CSS Design System Manager VS Code Extension
|
| 2 |
+
|
| 3 |
+
>
|
| 4 |
+
|
| 5 |
+
## Features
|
| 6 |
+
|
| 7 |
+
- Core functionality
|
| 8 |
+
|
| 9 |
+
## Installation
|
| 10 |
+
|
| 11 |
+
### From VS Code Marketplace
|
| 12 |
+
1. Open VS Code
|
| 13 |
+
2. Press `Ctrl+P` (or `Cmd+P` on Mac)
|
| 14 |
+
3. Type `ext install digitalforge.a15b5865`
|
| 15 |
+
4. Press Enter
|
| 16 |
+
|
| 17 |
+
### From VSIX file
|
| 18 |
+
1. Download the `.vsix` file
|
| 19 |
+
2. In VS Code: `Extensions > ··· > Install from VSIX`
|
| 20 |
+
3. Select the downloaded file
|
| 21 |
+
|
| 22 |
+
## Usage
|
| 23 |
+
|
| 24 |
+
Press `Ctrl+Shift+P` and search for `Tailwind CSS Design System Manager VS Code Extension` to see all available commands.
|
| 25 |
+
|
| 26 |
+
**Keyboard shortcut:** `Ctrl+Shift+Alt+A` (or `Cmd+Shift+Alt+A` on Mac)
|
| 27 |
+
|
| 28 |
+
## Settings
|
| 29 |
+
|
| 30 |
+
| Setting | Default | Description |
|
| 31 |
+
|---------|---------|-------------|
|
| 32 |
+
| `a15b5865.enabled` | `true` | Enable/disable the extension |
|
| 33 |
+
| `a15b5865.autoRun` | `false` | Auto-run on file open |
|
| 34 |
+
| `a15b5865.logLevel` | `"info"` | Log verbosity |
|
| 35 |
+
|
| 36 |
+
## Requirements
|
| 37 |
+
|
| 38 |
+
- VS Code 1.74.0 or higher
|
| 39 |
+
|
| 40 |
+
## Contributing
|
| 41 |
+
|
| 42 |
+
Found a bug? [Open an issue](https://github.com/digitalforge/a15b5865/issues).
|
| 43 |
+
|
| 44 |
+
## License
|
| 45 |
+
|
| 46 |
+
MIT — see [LICENSE](LICENSE) for details.
|
a15b5865/out/extension.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.activate = activate;
|
| 4 |
+
exports.deactivate = deactivate;
|
| 5 |
+
const vscode = require("vscode");
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* Tailwind CSS Design System Manager VS Code Extension
|
| 9 |
+
*
|
| 10 |
+
* Features:
|
| 11 |
+
|
| 12 |
+
*/
|
| 13 |
+
|
| 14 |
+
let outputChannel;
|
| 15 |
+
let statusBarItem;
|
| 16 |
+
|
| 17 |
+
function activate(context) {
|
| 18 |
+
outputChannel = vscode.window.createOutputChannel('Tailwind CSS Design System Manager VS Code Extension');
|
| 19 |
+
outputChannel.appendLine(`Tailwind CSS Design System Manager VS Code Extension v1.0.0 activated`);
|
| 20 |
+
|
| 21 |
+
// Status bar
|
| 22 |
+
statusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 100);
|
| 23 |
+
statusBarItem.text = '$(zap) a15b5865';
|
| 24 |
+
statusBarItem.tooltip = 'Tailwind CSS Design System Manager VS Code Extension';
|
| 25 |
+
statusBarItem.command = 'a15b5865.activate';
|
| 26 |
+
statusBarItem.show();
|
| 27 |
+
context.subscriptions.push(statusBarItem);
|
| 28 |
+
|
| 29 |
+
// Register commands
|
| 30 |
+
let cmd0 = vscode.commands.registerCommand('a15b5865.activate', () => {
|
| 31 |
+
vscode.window.showInformationMessage('Tailwind CSS Design System Manager VS Code Extension: Tailwind CSS Design System Manager VS Code Extension: Activate executed');
|
| 32 |
+
outputChannel.appendLine(`[INFO] Command executed: Tailwind CSS Design System Manager VS Code Extension: Activate`);
|
| 33 |
+
});
|
| 34 |
+
let cmd1 = vscode.commands.registerCommand('a15b5865.settings', () => {
|
| 35 |
+
vscode.window.showInformationMessage('Tailwind CSS Design System Manager VS Code Extension: Tailwind CSS Design System Manager VS Code Extension: Open Settings executed');
|
| 36 |
+
outputChannel.appendLine(`[INFO] Command executed: Tailwind CSS Design System Manager VS Code Extension: Open Settings`);
|
| 37 |
+
});
|
| 38 |
+
let cmd2 = vscode.commands.registerCommand('a15b5865.run', () => {
|
| 39 |
+
vscode.window.showInformationMessage('Tailwind CSS Design System Manager VS Code Extension: Tailwind CSS Design System Manager VS Code Extension: Run executed');
|
| 40 |
+
outputChannel.appendLine(`[INFO] Command executed: Tailwind CSS Design System Manager VS Code Extension: Run`);
|
| 41 |
+
});
|
| 42 |
+
context.subscriptions.push(cmd0);
|
| 43 |
+
context.subscriptions.push(cmd1);
|
| 44 |
+
context.subscriptions.push(cmd2);
|
| 45 |
+
|
| 46 |
+
// Configuration change listener
|
| 47 |
+
context.subscriptions.push(
|
| 48 |
+
vscode.workspace.onDidChangeConfiguration(e => {
|
| 49 |
+
if (e.affectsConfiguration('a15b5865')) {
|
| 50 |
+
const config = vscode.workspace.getConfiguration('a15b5865');
|
| 51 |
+
const enabled = config.get('enabled', true);
|
| 52 |
+
if (enabled) {
|
| 53 |
+
statusBarItem.show();
|
| 54 |
+
} else {
|
| 55 |
+
statusBarItem.hide();
|
| 56 |
+
}
|
| 57 |
+
outputChannel.appendLine(`[INFO] Configuration updated`);
|
| 58 |
+
}
|
| 59 |
+
})
|
| 60 |
+
);
|
| 61 |
+
|
| 62 |
+
outputChannel.appendLine(`[INFO] Tailwind CSS Design System Manager VS Code Extension ready`);
|
| 63 |
+
vscode.window.showInformationMessage('Tailwind CSS Design System Manager VS Code Extension is now active!');
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
function deactivate() {
|
| 67 |
+
outputChannel?.appendLine('Tailwind CSS Design System Manager VS Code Extension deactivated');
|
| 68 |
+
outputChannel?.dispose();
|
| 69 |
+
statusBarItem?.dispose();
|
| 70 |
+
}
|
a15b5865/package.json
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "a15b5865",
|
| 3 |
+
"displayName": "Tailwind CSS Design System Manager VS Code Extension",
|
| 4 |
+
"description": "",
|
| 5 |
+
"version": "1.0.0",
|
| 6 |
+
"engines": {
|
| 7 |
+
"vscode": "^1.74.0"
|
| 8 |
+
},
|
| 9 |
+
"categories": [
|
| 10 |
+
"Other"
|
| 11 |
+
],
|
| 12 |
+
"publisher": "digitalforge",
|
| 13 |
+
"activationEvents": [
|
| 14 |
+
"onStartupFinished"
|
| 15 |
+
],
|
| 16 |
+
"main": "./out/extension",
|
| 17 |
+
"contributes": {
|
| 18 |
+
"commands": [
|
| 19 |
+
{
|
| 20 |
+
"command": "a15b5865.activate",
|
| 21 |
+
"title": "Tailwind CSS Design System Manager VS Code Extension: Activate"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"command": "a15b5865.settings",
|
| 25 |
+
"title": "Tailwind CSS Design System Manager VS Code Extension: Open Settings"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"command": "a15b5865.run",
|
| 29 |
+
"title": "Tailwind CSS Design System Manager VS Code Extension: Run"
|
| 30 |
+
}
|
| 31 |
+
],
|
| 32 |
+
"configuration": {
|
| 33 |
+
"title": "Tailwind CSS Design System Manager VS Code Extension",
|
| 34 |
+
"properties": {
|
| 35 |
+
"a15b5865.enabled": {
|
| 36 |
+
"type": "boolean",
|
| 37 |
+
"default": true,
|
| 38 |
+
"description": "Enable/disable Tailwind CSS Design System Manager VS Code Extension"
|
| 39 |
+
},
|
| 40 |
+
"a15b5865.autoRun": {
|
| 41 |
+
"type": "boolean",
|
| 42 |
+
"default": false,
|
| 43 |
+
"description": "Automatically run on file open"
|
| 44 |
+
},
|
| 45 |
+
"a15b5865.logLevel": {
|
| 46 |
+
"type": "string",
|
| 47 |
+
"enum": [
|
| 48 |
+
"error",
|
| 49 |
+
"warn",
|
| 50 |
+
"info",
|
| 51 |
+
"debug"
|
| 52 |
+
],
|
| 53 |
+
"default": "info",
|
| 54 |
+
"description": "Log verbosity level"
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
},
|
| 58 |
+
"keybindings": [
|
| 59 |
+
{
|
| 60 |
+
"command": "a15b5865.activate",
|
| 61 |
+
"key": "ctrl+shift+alt+a",
|
| 62 |
+
"mac": "cmd+shift+alt+a",
|
| 63 |
+
"when": "editorTextFocus"
|
| 64 |
+
}
|
| 65 |
+
]
|
| 66 |
+
},
|
| 67 |
+
"scripts": {
|
| 68 |
+
"vscode:prepublish": "npm run compile",
|
| 69 |
+
"compile": "tsc -p ./",
|
| 70 |
+
"watch": "tsc -watch -p ./",
|
| 71 |
+
"pretest": "npm run compile",
|
| 72 |
+
"lint": "eslint src --ext ts"
|
| 73 |
+
},
|
| 74 |
+
"devDependencies": {
|
| 75 |
+
"@types/vscode": "^1.74.0",
|
| 76 |
+
"@types/node": "^18.x",
|
| 77 |
+
"typescript": "^5.0.0"
|
| 78 |
+
},
|
| 79 |
+
"keywords": [
|
| 80 |
+
"frontend_development",
|
| 81 |
+
"productivity",
|
| 82 |
+
"automation"
|
| 83 |
+
],
|
| 84 |
+
"license": "MIT",
|
| 85 |
+
"icon": "icon.png",
|
| 86 |
+
"galleryBanner": {
|
| 87 |
+
"color": "#1e1e2e",
|
| 88 |
+
"theme": "dark"
|
| 89 |
+
},
|
| 90 |
+
"repository": {
|
| 91 |
+
"type": "git",
|
| 92 |
+
"url": "https://github.com/digitalforge/a15b5865"
|
| 93 |
+
},
|
| 94 |
+
"bugs": {
|
| 95 |
+
"url": "https://github.com/digitalforge/a15b5865/issues"
|
| 96 |
+
}
|
| 97 |
+
}
|
a15b5865/src/extension.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import * as vscode from 'vscode';
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Tailwind CSS Design System Manager VS Code Extension
|
| 5 |
+
*
|
| 6 |
+
* Features:
|
| 7 |
+
|
| 8 |
+
*/
|
| 9 |
+
|
| 10 |
+
let outputChannel: vscode.OutputChannel;
|
| 11 |
+
let statusBarItem: vscode.StatusBarItem;
|
| 12 |
+
|
| 13 |
+
export function activate(context: vscode.ExtensionContext) {
|
| 14 |
+
outputChannel = vscode.window.createOutputChannel('Tailwind CSS Design System Manager VS Code Extension');
|
| 15 |
+
outputChannel.appendLine(`Tailwind CSS Design System Manager VS Code Extension v1.0.0 activated`);
|
| 16 |
+
|
| 17 |
+
// Status bar
|
| 18 |
+
statusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 100);
|
| 19 |
+
statusBarItem.text = '$(zap) a15b5865';
|
| 20 |
+
statusBarItem.tooltip = 'Tailwind CSS Design System Manager VS Code Extension';
|
| 21 |
+
statusBarItem.command = 'a15b5865.activate';
|
| 22 |
+
statusBarItem.show();
|
| 23 |
+
context.subscriptions.push(statusBarItem);
|
| 24 |
+
|
| 25 |
+
// Register commands
|
| 26 |
+
let cmd0 = vscode.commands.registerCommand('a15b5865.activate', () => {
|
| 27 |
+
vscode.window.showInformationMessage('Tailwind CSS Design System Manager VS Code Extension: Tailwind CSS Design System Manager VS Code Extension: Activate executed');
|
| 28 |
+
outputChannel.appendLine(`[INFO] Command executed: Tailwind CSS Design System Manager VS Code Extension: Activate`);
|
| 29 |
+
});
|
| 30 |
+
let cmd1 = vscode.commands.registerCommand('a15b5865.settings', () => {
|
| 31 |
+
vscode.window.showInformationMessage('Tailwind CSS Design System Manager VS Code Extension: Tailwind CSS Design System Manager VS Code Extension: Open Settings executed');
|
| 32 |
+
outputChannel.appendLine(`[INFO] Command executed: Tailwind CSS Design System Manager VS Code Extension: Open Settings`);
|
| 33 |
+
});
|
| 34 |
+
let cmd2 = vscode.commands.registerCommand('a15b5865.run', () => {
|
| 35 |
+
vscode.window.showInformationMessage('Tailwind CSS Design System Manager VS Code Extension: Tailwind CSS Design System Manager VS Code Extension: Run executed');
|
| 36 |
+
outputChannel.appendLine(`[INFO] Command executed: Tailwind CSS Design System Manager VS Code Extension: Run`);
|
| 37 |
+
});
|
| 38 |
+
context.subscriptions.push(cmd0);
|
| 39 |
+
context.subscriptions.push(cmd1);
|
| 40 |
+
context.subscriptions.push(cmd2);
|
| 41 |
+
|
| 42 |
+
// Configuration change listener
|
| 43 |
+
context.subscriptions.push(
|
| 44 |
+
vscode.workspace.onDidChangeConfiguration(e => {
|
| 45 |
+
if (e.affectsConfiguration('a15b5865')) {
|
| 46 |
+
const config = vscode.workspace.getConfiguration('a15b5865');
|
| 47 |
+
const enabled = config.get<boolean>('enabled', true);
|
| 48 |
+
if (enabled) {
|
| 49 |
+
statusBarItem.show();
|
| 50 |
+
} else {
|
| 51 |
+
statusBarItem.hide();
|
| 52 |
+
}
|
| 53 |
+
outputChannel.appendLine(`[INFO] Configuration updated`);
|
| 54 |
+
}
|
| 55 |
+
})
|
| 56 |
+
);
|
| 57 |
+
|
| 58 |
+
outputChannel.appendLine(`[INFO] Tailwind CSS Design System Manager VS Code Extension ready`);
|
| 59 |
+
vscode.window.showInformationMessage('Tailwind CSS Design System Manager VS Code Extension is now active!');
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
export function deactivate() {
|
| 63 |
+
outputChannel?.appendLine('Tailwind CSS Design System Manager VS Code Extension deactivated');
|
| 64 |
+
outputChannel?.dispose();
|
| 65 |
+
statusBarItem?.dispose();
|
| 66 |
+
}
|
a15b5865/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"compilerOptions": {
|
| 3 |
+
"module": "Node16",
|
| 4 |
+
"target": "ES2022",
|
| 5 |
+
"outDir": "out",
|
| 6 |
+
"lib": [
|
| 7 |
+
"ES2022"
|
| 8 |
+
],
|
| 9 |
+
"sourceMap": true,
|
| 10 |
+
"rootDir": "src",
|
| 11 |
+
"strict": true
|
| 12 |
+
},
|
| 13 |
+
"exclude": [
|
| 14 |
+
"node_modules",
|
| 15 |
+
".vscode-test"
|
| 16 |
+
]
|
| 17 |
+
}
|