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

16
.vscode/launch.json vendored
View File

@@ -1,6 +1,22 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run VSCode IDE Bridge",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--new-window",
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}/packages/vscode-ide-bridge",
"${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/packages/vscode-ide-bridge/dist/**/*.js"
],
"preLaunchTask": "Build VSCode IDE Bridge"
},
{
"type": "bun",
"request": "attach",

35
.vscode/tasks.json vendored
View File

@@ -1,6 +1,39 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build VSCode IDE Bridge",
"type": "shell",
"command": "bunx",
"args": [
"tsc",
"-p",
"packages/vscode-ide-bridge/tsconfig.json"
],
"presentation": {
"reveal": "always",
"focus": false,
"panel": "shared",
"clear": true
},
"problemMatcher": []
},
{
"label": "Test VSCode IDE Bridge",
"type": "shell",
"command": "bun",
"args": [
"test",
"packages/vscode-ide-bridge/test"
],
"presentation": {
"reveal": "always",
"focus": false,
"panel": "shared",
"clear": true
},
"problemMatcher": []
},
{
"label": "Start Claude Code TUI",
"type": "shell",
@@ -24,4 +57,4 @@
}
}
]
}
}