Skip to content

Commit 900363a

Browse files
committed
ignore compiled artifacts
1 parent 6ae2d87 commit 900363a

File tree

16 files changed

+994
-5
lines changed

16 files changed

+994
-5
lines changed

.claude/settings.local.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"permissions": {
33
"allow": [
4-
"Bash(python:*)"
4+
"Bash(python:*)",
5+
"Bash(npx @vscode/vsce package:*)",
6+
"Bash(vsce package:*)"
57
],
68
"deny": [],
79
"ask": []

.github/workflows/release.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Release Extension
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '18'
20+
cache: 'yarn'
21+
22+
- name: Get tag name
23+
id: tag
24+
run: |
25+
TAG=${GITHUB_REF#refs/tags/}
26+
VERSION=${TAG#v}
27+
echo "tag=$TAG" >> $GITHUB_OUTPUT
28+
echo "version=$VERSION" >> $GITHUB_OUTPUT
29+
30+
- name: Update package.json version
31+
run: |
32+
npm version ${{ steps.tag.outputs.version }} --no-git-tag-version
33+
34+
- name: Install dependencies
35+
run: yarn install --frozen-lockfile
36+
37+
- name: Compile extension
38+
run: yarn compile
39+
40+
- name: Install VSCE
41+
run: npm install -g @vscode/vsce
42+
43+
- name: Package extension
44+
run: vsce package
45+
46+
- name: Get VSIX filename
47+
id: vsix
48+
run: echo "filename=$(ls python-vscode-bridge-*.vsix)" >> $GITHUB_OUTPUT
49+
50+
- name: Create Release
51+
uses: softprops/action-gh-release@v1
52+
with:
53+
name: Release ${{ steps.tag.outputs.tag }}
54+
body: |
55+
## Python-VS Code Bridge ${{ steps.tag.outputs.tag }}
56+
57+
### Installation
58+
Download the `.vsix` file and install it in VS Code:
59+
```bash
60+
code --install-extension python-vscode-bridge-${{ steps.tag.outputs.tag }}.vsix
61+
```
62+
63+
### Quick Start
64+
1. Install the extension
65+
2. Run command: `Python Bridge: Open Demo Files`
66+
3. Run command: `Python Bridge: Install Python Dependencies`
67+
4. Execute demo: `python demo.py`
68+
69+
### What's included
70+
- WebSocket bridge between Python and VS Code
71+
- Complete Python client library
72+
- Interactive demo scripts
73+
- Example automation workflows
74+
files: |
75+
${{ steps.vsix.outputs.filename }}
76+
draft: false
77+
prerelease: false

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
node_modules
2-
workspace/python_client/__pycache__
2+
dist/
3+
*.vsix
4+
workspace/python_client/__pycache__/
5+
python_demos/examples/__pycache__/
6+
python_demos/python_client/__pycache__/

.vscodeignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.vscode/**
2+
.vscode-test/**
3+
src/**
4+
.gitignore
5+
yarn.lock
6+
.claude/**
7+
.eslintrc.json
8+
*.vsix
9+
workspace/**/*.py*
10+
workspace/test-file.txt
11+
*.md
12+
!python_demos/**

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Python-VS Code Bridge",
44
"description": "Minimal demonstration of Python-to-VS Code communication via WebSocket",
55
"version": "0.0.1",
6-
"publisher": "demo",
6+
"publisher": "your-publisher-id",
77
"repository": {
88
"type": "git",
99
"url": "https://github.com/IanMayo/python-vs-code-integration.git"
@@ -30,6 +30,14 @@
3030
{
3131
"command": "python-vscode-bridge.helloWorld",
3232
"title": "Hello World"
33+
},
34+
{
35+
"command": "python-vscode-bridge.openPythonDemo",
36+
"title": "Python Bridge: Open Demo Files"
37+
},
38+
{
39+
"command": "python-vscode-bridge.installPythonDeps",
40+
"title": "Python Bridge: Install Python Dependencies"
3341
}
3442
]
3543
},

python_demos/README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Python-VS Code Bridge - Demo Workspace
2+
3+
Welcome! The Python-VS Code Bridge extension is now running and ready for demonstration.
4+
5+
## 🎯 Quick Demo
6+
7+
**Open VS Code Terminal:** Press `Ctrl+`` (or `Cmd+`` on Mac) → then run:
8+
9+
```bash
10+
python demo.py
11+
```
12+
13+
This interactive demo will guide you through all bridge capabilities!
14+
15+
## 📂 Files Available for Testing
16+
17+
- **`demo.py`** - Interactive guided demonstration
18+
- **`test-file.txt`** - Sample text file for manipulation
19+
- **`sample.js`** - JavaScript file with errors/warnings/TODOs
20+
- **`sample.py`** - Python file with sample content
21+
- **`examples/`** - Individual example scripts
22+
- **`python_client/`** - Bridge library (already installed)
23+
24+
## 🧪 Individual Examples
25+
26+
```bash
27+
# Send a notification to VS Code
28+
python examples/basic_notify.py
29+
30+
# See what files you have open
31+
python examples/editor_info.py
32+
33+
# Transform text in the active editor
34+
python examples/text_replacement.py
35+
36+
# Analyze all open files for errors/warnings/TODOs
37+
python examples/automated_workflow.py
38+
```
39+
40+
## 💡 Tips for Best Experience
41+
42+
1. **Open multiple files** - The bridge can detect and work with all open editors
43+
2. **Try the automated workflow** after opening several files to see analysis
44+
3. **Switch between files** - Make different files active to see text modification work
45+
4. **Watch for notifications** - Python will send real-time updates to VS Code
46+
47+
## 🎯 What You'll See
48+
49+
-**Real-time notifications** from Python appearing in VS Code
50+
-**File content analysis** and statistics
51+
-**Text modifications** happening live in your editors
52+
-**Bidirectional communication** between Python and VS Code
53+
54+
**The bridge is live and ready to use!** 🚀

0 commit comments

Comments
 (0)