feat: add VS Code IDE bridge extension

This commit is contained in:
suger
2026-04-09 01:26:18 +08:00
parent 7f694168d0
commit 22480302c3
36 changed files with 3659 additions and 6 deletions

View File

@@ -0,0 +1,36 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run VSCode IDE Bridge",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--new-window",
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "Build VSCode IDE Bridge"
},
{
"name": "Run VSCode IDE Bridge (Open Claude Code Root)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--new-window",
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"${workspaceFolder}/../.."
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "Build VSCode IDE Bridge"
}
]
}

View File

@@ -0,0 +1,47 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build VSCode IDE Bridge",
"type": "shell",
"command": "bunx",
"args": [
"tsc",
"-p",
"tsconfig.json"
],
"options": {
"cwd": "${workspaceFolder}"
},
"group": "build",
"problemMatcher": "$tsc"
},
{
"label": "Test VSCode IDE Bridge",
"type": "shell",
"command": "bun",
"args": [
"test",
"test"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "Package VSCode IDE Bridge",
"type": "shell",
"command": "bun",
"args": [
"run",
"package"
],
"options": {
"cwd": "${workspaceFolder}"
},
"group": "build",
"problemMatcher": []
}
]
}