Installation
Prerequisites
- VS Code, Cursor, or Windsurf editor installed
- PROJAX CLI installed (
npm install -g projax) - PROJAX API server running (automatically started with
prx weborprx api --start)
Installation Methods
Method 1: Via Command Line (Recommended)
- Get the extension package:
# View installation instructions and .vsix location
prx vscode-extension
- Install in your editor:
# VS Code
code --install-extension /path/to/projax-vscode-3.0.0.vsix
# Cursor
cursor --install-extension /path/to/projax-vscode-3.0.0.vsix
# Windsurf
windsurf --install-extension /path/to/projax-vscode-3.0.0.vsix
Method 2: Via Editor UI
-
Get the extension package:
- Run
prx vscode-extensionto see the location of the.vsixfile - Default location:
./release/projax-vscode-3.0.0.vsix
- Run
-
Install via Extensions panel:
- Open Extensions (
Cmd+Shift+X/Ctrl+Shift+X) - Click the "..." menu at the top
- Select "Install from VSIX..."
- Navigate to the
.vsixfile - Click "Install"
- Open Extensions (
-
Reload the editor:
- Click "Reload" when prompted, or
- Run "Developer: Reload Window" from command palette
Verification
After installation, you should see a new PROJAX icon in the Activity Bar (left sidebar). Click it to open the PROJAX sidebar with two panels:
- PROJAX Projects - Browse and search all projects
- PROJAX Project Details - View details for the current project
Configuration
Extension Settings
Access settings via:
- Command Palette:
PROJAX: Open Settings - VS Code Settings: Search for "PROJAX"
Available settings:
| Setting | Type | Default | Description |
|---|---|---|---|
projax.apiPort | number | null | Manual API port override (auto-detects if empty) |
projax.autoDetect | boolean | true | Automatically detect current workspace project |
projax.refreshInterval | number | 5000 | Process polling interval (milliseconds) |
projax.preferredOpenMode | string | "ask" | Default behavior when opening projects (newWindow, currentWindow, addToWorkspace, or ask) |
API Connection
The extension connects to the PROJAX API server automatically. If the API server is not running, it falls back to direct database access.
To ensure optimal performance:
-
Start the API server:
prx api --start -
Or start the Desktop app (which starts the API automatically):
prx web
The extension will display the connection mode in the output panel:
Connected to PROJAX (mode: api)- API server connectionConnected to PROJAX (mode: direct)- Direct database access
Troubleshooting
Extension Not Showing
-
Check installation:
code --list-extensions | grep projax -
Reload the editor:
- Command Palette → "Developer: Reload Window"
-
Check output panel:
- View → Output
- Select "PROJAX" from the dropdown
Connection Issues
-
Check API server status:
prx api -
Start API server if needed:
prx api --start -
Check extension logs:
- View → Output → PROJAX
Current Project Not Detected
-
Ensure the workspace is added to PROJAX:
prx add /path/to/workspace -
Or use the command palette:
PROJAX: Add Current Workspace to PROJAX
-
Manually refresh:
PROJAX: Refresh Projects
For more troubleshooting, see the Troubleshooting Guide.