treg
superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:sinvacn/dsh-vscode-runner
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Run VS Code launch configurations, compounds and tasks from the DeepSeek Harness (DSH) Web UI. The catalog comes from the same files VS Code uses: *.code-workspace, .vscode/launch.json, .vscode/tasks.json and .vscode/settings.json.
English | 中文
launch.json. Tasks can be run directly, and preLaunchTask / dependsOn chains are executed in order..vscode directory; a .code-workspace reads workspace-level launch / tasks plus every listed folder's .vscode files.${workspaceFolder}, ${workspaceFolder:Name}, ${workspaceFolderBasename}, ${cwd}, ${env:NAME}, ${config:key}, ${userHome}, ${pathSeparator} and ${/}.cwd, env, args, preLaunchTask, dependsOn, stdin and stop are supported. Output is streamed with ANSI escapes removed.deviceId use flutter devices --machine; one device is selected automatically, several become a picker.vscode_launch for listing, starting, stopping and inspecting runs from chat.Tested with DSH 0.2.1-rc.5.
dsh plugin --profile desktop add github:sinvacn/dsh-vscode-runner
Or ask the agent in chat:
Install the dsh-vscode-runner plugin:
dsh plugin --profile desktop add github:sinvacn/dsh-vscode-runner
Then open Settings → Plugins and make sure VS Code Runner is enabled. Refresh the page once; restart the desktop app if the Session header does not show the play icon.
Click the play icon in the conversation header. The dialog lists launch configurations and tasks, grouped by the configuration's cwd (the sub-project), with search and category tabs.
↑ / ↓ move the cursor, Enter runs, Esc closes.Starting a configuration switches the same dialog to the runs view, with the new run expanded:
r / q);No separate sidebar page or navigation is needed.
For a launch configuration:
preLaunchTask is resolved by label and run; a failing task stops the launch.cwd and env are applied.$SHELL -lc on POSIX, cmd.exe on Windows).For a task:
dependsOn entries are run first (VS Code's default parallel order is currently executed sequentially).command / args / options.cwd / options.env are applied.type |
How it runs |
|---|---|
dart |
flutter run -d <device>, with toolArgs, args, program, flutterMode |
go |
go run / go test / mode: exec; no Delve debugger |
node-terminal |
the command exactly as written |
node / pwa-node |
node or runtimeExecutable + runtimeArgs + program; --inspect-brk is removed |
python / debugpy |
python3 or pythonPath + program / module |
chrome / pwa-chrome / msedge / pwa-msedge |
opens url in the system browser |
dotnet |
dotnet <program> |
ruby / php |
<type> <program> |
cppdbg / cppvsdbg / lldb / gdb |
runs program without a debugger |
any type with command, program or url |
generic command / executable / browser opener |
Configurations with request: attach are not runnable: DSH does not implement the Debug Adapter Protocol.
The runner starts from the selected directory and looks for a workspace in this order:
.code-workspace in the same directory is treated as the workspace (even if its folders are subdirectories)..code-workspace is used only if the selected directory is inside one of its listed folders. An unrelated workspace file in an ancestor is ignored, so a single-folder project is not hijacked by a parent multi-root workspace..vscode directory is read.For a multi-root workspace, the catalog contains:
launch.configurations, launch.compounds and tasks from the .code-workspace;.vscode/launch.json, .vscode/tasks.json and .vscode/settings.json.Workspace-level configurations must scope ${workspaceFolder} explicitly (for example ${workspaceFolder:Client}). Unscoped ${workspaceFolder}, ${workspaceRoot} and ${workspaceFolderBasename} are invalid there and are reported as such, matching VS Code.
| Variable | Meaning |
|---|---|
${workspaceFolder} |
the folder of the current launch.json / tasks.json |
${workspaceFolder:Name} |
a named folder from a .code-workspace |
${workspaceFolderBasename} |
basename of the current folder |
${workspaceRoot} |
deprecated alias for ${workspaceFolder} |
${cwd} |
the task runner's current directory |
${env:NAME} |
process environment variable (empty with a warning if unset) |
${config:key.path} |
value from .vscode/settings.json |
${userHome} |
home directory |
${pathSeparator}, ${/} |
platform path separator |
${file}, ${relativeFile}, ${selectedText}, ${lineNumber}, ${input:...} and ${command:...} need editor or interactive context. Configurations using them are listed but marked not runnable with the reason.
The host registers vscode_launch with these actions:
{ "action": "list", "cwd": "/path/to/project" }
{ "action": "start", "cwd": "/path/to/project", "id": "launch:folder:/path/to/project:0" }
{ "action": "status", "cwd": "/path/to/project" }
{ "action": "stop", "runId": "run-3" }
{ "action": "input", "runId": "run-3", "data": "r" }
{ "action": "devices", "cwd": "/path/to/project" }
{ "action": "workspaces" }
{ "action": "session", "sessionId": "..." }
Call list first and reuse the returned item id for start.
ctx.connection.requestRejection(req) before it can read files or spawn a process. Unauthenticated, cross-site and Host/Origin-mismatched requests are rejected..code-workspace / .vscode files before running them.env.Runner instance, so a run started in chat appears in the same dialog.attach sessions and postDebugTask are not implemented. go, node, Python and C/C++ configurations run as ordinary processes; dart still gets Flutter's own VM Service debugging."isBackground": true can be run directly, but it cannot be a preLaunchTask or dependsOn, because there is no problem-matcher handshake to know when it is ready.preLaunchTask is not executed. Members' own preLaunchTask entries are executed.dependsOrder: "parallel" is currently sequential. The task list says so when more than one dependency exists.tasks.json / .code-workspace are listed; npm, gulp, grunt and TypeScript auto-detected tasks are not..code-workspace, it is treated as a multi-root workspace even when it was opened as a single folder. Move or rename the workspace file to force single-folder mode.Requires Node.js 20 or newer. There are no runtime dependencies.
npm test
The suite creates temporary single-folder and multi-root workspaces and covers:
${workspaceFolder}, ${config:...}, task cwd and npm arguments;.code-workspace;preLaunchTask + dependsOn, stdin, stop and the background-task guard;For implementation details, see docs/internals.md.
| File | Purpose |
|---|---|
core.js |
JSONC parsing, workspace discovery, variable substitution, catalog compilation, process runner |
index.js |
Host plugin: authenticated web routes and the vscode_launch agent tool |
client.js |
Web UI: Session header play icon, configuration dialog, runs view, logs, input, device picker |
cordis.patch.yml |
Inserts the vscode-runner row into a DSH profile |
locale/{en,zh}.json |
Plugin Manager title and description |
icon.svg |
Plugin icon |
test/run.mjs |
Self-contained test suite |
CHANGELOG.md |
Release notes |
SECURITY.md |
Private vulnerability reporting |
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: developer-tools。