Run Package (Universal Runner)
A JetBrains-style project & file run configuration manager for Visual Studio Code. Organize workspace and global shell commands, group them into parallel or sequential packs, auto-detect existing project scripts, run individual files, and configure everything through a dedicated Activity Bar Sidebar, Visual Configuration Editor, and Status Bar Toolbar.
Features
- Activity Bar Sidebar (
Run Package): Unified tree view showing:
- Running (
N): Live running commands/packs with inline Focus Terminal, Restart, Stop, and Close Terminal actions.
- Packs & Commands: Expand packs to inspect steps in execution order, run or edit inline, duplicate, or set as active.
- Global Configurations: Commands and packs saved across all workspaces (even when no folder is open).
- Detected Scripts: Live auto-discovered scripts ready to run immediately or pin into
.vscode/universal-runner.json with one click.
- JetBrains-Style Visual Configuration Editor:
- Master-detail configuration page with scope switching (workspace folders + Global), live search, dirty tracking (
Ctrl/Cmd+S save & discard), and raw JSON sync.
- Full form for commands (
name, id, command with clickable variable chips, cwd folder browser, env key-value table, visual icon & terminal color pickers, and filePattern/languages rules).
- Pack form with Parallel / Sequential toggle, Split / Tabs layout override, and drag-and-drop / Up-Down step ordering.
- One-click Open Visual Editor icon in the editor title when viewing any
universal-runner.json file.
- Full Status Bar Toolbar & Optional Editor Title Controls:
- Active configuration dropdown, Play / Restart button, Stop button, and a background
N running indicator.
- Quick-Run Any (
Run Package: Run Any Configuration...) launches any saved or detected script without changing your active selection.
- Polyglot Depth-2 Auto-Discovery:
- Automatically detects scripts across workspace folders (up to depth 2 for monorepos like
client/ & server/):
package.json (lockfile-aware npm, pnpm, yarn, bun)
Makefile / makefile / GNUmakefile
Cargo.toml
pyproject.toml (uv, poetry, scripts, pytest)
go.mod
docker-compose.yml / compose.yaml
.vscode/tasks.json
- Specific File Runner & Variable Substitution:
- Run the current file via Editor Title, Editor context menu, Command Palette (
Run Package: Run Active File), or Explorer right-click (Run File with Run Package).
- Matches custom
filePattern / languages rules first, then falls back to customizable universalRunner.fileExecutors.
- Reliable Terminal & Pack Lifecycle:
- Stop defaults to sending
Ctrl+C (interrupt) so terminal logs stay visible (Close Terminal kills and closes).
- Parallel Packs default to side-by-side split terminals (auto-falling back to tabs when > 3 commands).
- Sequential Packs use VS Code Shell Integration (with automatic VS Code Shell Task fallback) for accurate exit codes and stop cleanly on non-zero failure.
Supported Variables
Variables work inside command, cwd, and env values:
| Variable |
Description |
${workspaceFolder} |
Absolute path of the owning workspace folder |
${workspaceFolderBasename} |
Folder name of the workspace folder |
${file} |
Full path of the active or right-clicked file |
${relativeFile} |
File path relative to ${workspaceFolder} |
${relativeFileDirname} |
File directory relative to ${workspaceFolder} |
${fileDirname} |
Full directory path of the target file |
${fileBasename} |
File name with extension |
${fileBasenameNoExtension} |
File name without extension |
${fileExtname} |
File extension (including leading .) |
${selectedText} |
Currently selected text in the active editor |
${cwd} |
Resolved working directory |
${input:Label} / ${input:Label:Default} |
Prompts for input once per run |
Configuration Storage
- Workspace configs:
.vscode/universal-runner.json in each workspace folder (supports multi-root workspaces).
- Global configs: Stored in VS Code
globalStorage/universal-runner.json using the exact same JSON schema.
{
"commands": [
{
"id": "backend",
"name": "Run Backend",
"command": "npm run dev",
"cwd": "server",
"env": { "PORT": "3000" },
"icon": "server",
"color": "terminal.ansiGreen"
},
{
"id": "run_py",
"name": "Run Python File",
"command": "python3 \"${file}\"",
"filePattern": "*.py",
"icon": "file-code"
}
],
"packs": [
{
"id": "full_stack",
"name": "Full Stack Dev",
"mode": "parallel",
"layout": "split",
"commands": ["backend", "frontend"]
}
]
}
Extension Settings
universalRunner.stopBehavior: "interrupt" (default, sends Ctrl+C & keeps logs) or "dispose" (closes terminal).
universalRunner.parallelLayout: "split" (default, side-by-side up to 3 terminals) or "tabs".
universalRunner.showStatusBarControls: Show/hide Status Bar controls (default true).
universalRunner.showEditorTitleButtons: Show/hide editor header Play/Stop/Run File buttons (default true).
universalRunner.clearBeforeRun: Clear terminal before re-running (default true).
universalRunner.saveBeforeRun: "none" (default), "activeFile", or "all".
universalRunner.preserveFocus: Keep editor focus when revealing terminals (default true).
universalRunner.autoDetect.enabled: Enable polyglot script auto-detection (default true).
universalRunner.autoDetect.maxDepth: Subfolder scan depth from 0 to 5 (default 2).
universalRunner.fileExecutors: Custom per-extension or per-language command overrides for Run Active File.
Publishing
Releases are published to the Visual Studio Marketplace by GitHub Actions when you push a version tag such as v0.1.1 for a commit already on main. Update the version in package.json to match the tag first. Tags pointing to commits outside main are rejected.
For one-time setup, create a Trusted Publishing policy in the Visual Studio Marketplace publisher management page. Set the repository owner to Supawish35, repository to run-package, workflow to publish.yml, and leave Environment empty. After the policy is created and this workflow is pushed to GitHub, push the matching tag; the action builds and publishes the extension without a manually uploaded VSIX.
| |