Skip to content

Commit 9c25852

Browse files
authored
Merge pull request #2 from nventive/copilot/fix-1
Add support for multiple git repositories and rename to prompt vault extension
2 parents 75b1037 + 6c3e244 commit 9c25852

File tree

14 files changed

+396
-186
lines changed

14 files changed

+396
-186
lines changed

.github/workflows/ci-cd.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI/CD Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- production-release
7+
pull_request:
8+
branches:
9+
- production-release
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: '14'
23+
24+
- name: Install dependencies
25+
run: npm install
26+
27+
- name: Build the extension
28+
run: npm run build
29+
30+
- name: Package the extension
31+
run: npm run package
32+
33+
deploy:
34+
runs-on: ubuntu-latest
35+
needs: build
36+
37+
steps:
38+
- name: Checkout code
39+
uses: actions/checkout@v2
40+
41+
- name: Upload VSIX file
42+
uses: actions/upload-artifact@v2
43+
with:
44+
name: vscode-extension
45+
path: path/to/your/package.vsix
46+
47+
- name: Deploy to Marketplace
48+
run: |
49+
echo "Deploying to the marketplace..."
50+
# Add your deployment script or command here
51+
# For example, using vsce to publish the extension
52+
npx vsce publish --pat ${{ secrets.VSCE_PAT }}

.vscode/launch.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Run Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"args": [
9+
"--extensionDevelopmentPath=${workspaceFolder}"
10+
],
11+
"outFiles": [
12+
"${workspaceFolder}/out/**/*.js"
13+
],
14+
"preLaunchTask": "npm: compile",
15+
}
16+
]
17+
}

CHANGELOG.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# VS Code Extension Change Log
22

3-
All notable changes to the "prompts-sync-extension" extension will be documented in this file.
3+
All notable changes to the "prompt-vault-extension" extension will be documented in this file.
44

55
## [1.1.0] - 2025-09-01
66

@@ -51,16 +51,16 @@ All notable changes to the "prompts-sync-extension" extension will be documented
5151

5252
### Configuration Options
5353

54-
- `promptsSync.enabled` - Enable/disable automatic syncing
55-
- `promptsSync.frequency` - Sync frequency (startup, hourly, daily, weekly, manual)
56-
- `promptsSync.customPath` - Custom prompts directory path
57-
- `promptsSync.repository` - Repository URL to sync from
58-
- `promptsSync.branch` - Repository branch to sync
59-
- `promptsSync.syncOnStartup` - Sync when VS Code starts
60-
- `promptsSync.showNotifications` - Show sync status notifications
61-
- `promptsSync.debug` - Enable debug logging
54+
- `promptVault.enabled` - Enable/disable automatic syncing
55+
- `promptVault.frequency` - Sync frequency (startup, hourly, daily, weekly, manual)
56+
- `promptVault.customPath` - Custom prompts directory path
57+
- `promptVault.repository` - Repository URL to sync from
58+
- `promptVault.branch` - Repository branch to sync
59+
- `promptVault.syncOnStartup` - Sync when VS Code starts
60+
- `promptVault.showNotifications` - Show sync status notifications
61+
- `promptVault.debug` - Enable debug logging
6262

6363
### Commands
6464

65-
- `promptsSync.syncNow` - Manually trigger sync
66-
- `promptsSync.showStatus` - Show extension status and configuration
65+
- `promptVault.syncNow` - Manually trigger sync
66+
- `promptVault.showStatus` - Show extension status and configuration

INSTALL.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,18 @@
77
1. **Install the extension:**
88

99
```bash
10-
code --install-extension prompts-sync-extension-1.0.0.vsix
10+
code --install-extension prompt-vault-extension-1.0.0.vsix
1111
```
1212

1313
2. **Or install via VS Code UI:**
1414
- Open VS Code
1515
- Press `Ctrl+Shift+P` (or `Cmd+Shift+P` on macOS)
1616
- Type "Extensions: Install from VSIX"
17-
- Select the `prompts-sync-extension-1.0.0.vsix` file
17+
- Select the `prompt-vault-extension.vsix` file
1818

1919
### Option 2: Development Mode
2020

2121
1. **Open in VS Code:**
22-
23-
```bash
24-
code /Users/mounir.abdous/Projects/prompts-logient-nventive/tools/vscode-extension
25-
```
26-
2722
2. **Press F5 to launch Extension Development Host**
2823

2924
## Testing the Extension
@@ -37,28 +32,29 @@
3732

3833
2. **Configure Extension (Optional):**
3934
- Go to Settings (`Ctrl+,`)
40-
- Search for "Prompts Sync"
35+
- Search for "Prompt Vault"
36+
- Add a git repository to sync prompts from.
4137
- Adjust settings as needed
4238

4339
### 2. Test Manual Sync
4440

4541
1. **Open Command Palette** (`Ctrl+Shift+P`)
46-
2. **Type:** "Prompts Sync: Sync Now"
42+
2. **Type:** "Prompt Vault: Sync Now"
4743
3. **Check status bar** for sync progress indicators
4844
4. **Verify prompts directory** was created and populated
4945

5046
### 3. Test Status Display
5147

5248
1. **Open Command Palette** (`Ctrl+Shift+P`)
53-
2. **Type:** "Prompts Sync: Show Status"
49+
2. **Type:** "Prompt Vault: Show Status"
5450
3. **Review configuration** and status information
5551

5652
### 4. Check Debug Logs
5753

5854
1. **Enable debug mode:**
59-
- Settings → Search "promptsSync.debug" → Enable
55+
- Settings → Search "promptVault.debug" → Enable
6056
2. **View logs:**
61-
- View → Output → Select "Prompts Sync" channel
57+
- View → Output → Select "Prompt Vault" channel
6258

6359
## Expected Behavior
6460

@@ -107,10 +103,10 @@
107103

108104
```bash
109105
# Check if extension is loaded
110-
code --list-extensions | grep prompts-sync
106+
code --list-extensions | grep prompt-vault
111107

112108
# View extension logs
113-
# Open VS Code → View → Output → Select "Prompts Sync"
109+
# Open VS Code → View → Output → Select "Prompt Vault"
114110

115111
# Reset extension data
116112
# Close VS Code, delete prompts directory, restart VS Code
@@ -129,10 +125,10 @@ npm run watch
129125
npx @vscode/vsce package
130126

131127
# Install locally
132-
code --install-extension prompts-sync-extension-1.0.0.vsix
128+
code --install-extension prompt-vault-extension-<version>.vsix
133129

134130
# Uninstall
135-
code --uninstall-extension logient-nventive.prompts-sync-extension
131+
code --uninstall-extension logient-nventive.prompt-vault-extension
136132
```
137133

138134
## Extension Structure Verification

0 commit comments

Comments
 (0)