4PACE - 3PQ Extension
Streamline your 3PQ development workflow with seamless Data Manager integration, automated Git version control, and Product Configurator engine management—all directly within Visual Studio Code.
Overview
The 3PQ Extension is your comprehensive companion for 3PQ Product Configurator development. It bridges VS Code with the 4PACE 3PQ Data Manager, enabling efficient synchronization of scripts, assets, and databases while providing version control.
Key Features
📦 Data Manager Integration
Release Management
- Get from DM: Switch on what you need (scripts, assets, databases, external data DB, data source files) and get the latest state. Only the databases and the external data DB need a new release in the Data Manager, everything else comes straight from it as delta. The button next to a switch gets only that part
- Restore Releases: Set the local files back to an existing release, the switches select what is restored
- Smart Synchronization: Automatically detects and updates only changed files
- Smart Deployment Support: Full support for Data Manager smart deployment with knowledge bases and workspaces
- Deploy Preview (command palette): Deploy the Development or Staging workspace as preview in the Data Manager and import it right away into the CPQ the Data Manager names for the preview. The import runs in the background, a notification tells when it is finished
File Operations
- Mirror to DM: Synchronize your local Scripts, Assets, and Databases folders to the Data Manager
- Upload & Delete: Manage individual files or folders directly from the context menu
- Upload & Import Data Sources: Upload data source files (
.xlsx, .xlsm, .csv, .xml or SQLite .sqlite3, .sqlite, .db, .db3) and import them one after the other through the import profiles configured in the Data Manager. Works on several selected files and on folders below Assets and Databases; a notification reports the result, failures are listed in one message. The release databases Release.sqlite3 and ExternalData.sqlite3 are never uploaded. The switch "Data source files" of "Get from DM" fetches these files into the folder of their Data Manager category (e.g. Assets/Tables or Databases) of each knowledge base/workspace; the mirror leaves them alone
- Diff Files: Compare local files with their Data Manager versions
- Template-Based Creation: Generate new scripts from templates with right-click convenience
🔧 Product Configurator Engine Management
- Automatic Updates: Download the latest or specific engine versions
- Centralized Storage: Engines stored centrally outside your workspace for easy management. This keeps your repo clean.
- Empty Workspace Setup: Initialize new projects with complete 3PQ setup automatically
- Migration Support: Migrate existing workspaces to smart deployment. Detect and repair missing files.
- Diff & Changelog: Compare modified settings and view engine changelogs
- Settings Reset: Restore configuration files to their original state
🔐 Authentication & Security
- OAuth/OIDC Integration: Secure login
- Data Manager: Login for each workspace / VS Code project
- Engine Server: Login once
Three-Panel Sidebar Interface
1. Info Panel
- Data Manager connection status and user information
- Release times: "DM Preview" (when the release on the DM Preview was deployed and from which workspace) and "Local Release" (the release installed in the workspace)
- Product Configurator engine details
- Git repository status and branch information
- One-click refresh for all information
- "Report a bug or feedback...": opens a form in VS Code that sends a bug report or feedback to 4PACE's Jira when you press Send, with all versions and, if wanted, the anonymized extension log attached. Screenshots and files (up to 3, 10 MB each) can be pasted with Ctrl+V, dropped onto the form with Shift held or added with +
2. Commands Panel
- The running command at the top, also while scrolling, with its running time and the current step, e.g. "Downloading assets · 1,200 / 8,500 files · 1.20 / 10.40 GB (11 %)". The buttons stay locked as long as the command shows progress, also when a release on a big tenant runs for an hour; a second release download is refused while one runs. A release download can be cancelled there or in its notification: it stops before anything is installed
- Release download&extraction options (scripts, assets, databases, or everything)
- Workspace and knowledge base selection dropdowns
- Product Configurator engine operations
- Git version control commands
- Migration support
3. Settings Panel
- Data Manager domain and OIDC provider configuration
- Git remote repository setup
- Direct links to Data Manager and OIDC provider interfaces
⚙️ Customizable Behavior
Configurable Options
- Enable/disable individual commands
- Control notification frequency ("Ask", "Always", "Never")
- Upload/download size warnings
- Git synchronization reminders
- Custom Git directory offset
- ((Experimental features like auto-upload, live-upload))
Workspace-Specific Settings
All configurations are stored per workspace, allowing different settings for each project.
Getting Started
Prerequisites
- VS Code: Version 1.100.0 or higher
- Operating System: Windows
- 3PQ Account: 4PACE 3PQ Data Manager access credentials
- Git (optional): For version control features
Note on macOS: While not officially supported, the extension can work on Apple Silicon Macs (ARM) by running Windows via Parallels with an x64 VS Code installation.
Initial Setup
For a new project in an empty folder the Commands Panel guides you through the setup, see Quick Start for New Projects. The steps below describe the manual way.
Install the Extension
Open the 3PQ Sidebar
- Click the 4PACE icon (nine squares) in the Activity Bar on the left
Configure Data Manager Connection
- Open the Settings Panel in the 3PQ sidebar
- Enter your Data Manager domain (e.g.,
https://your-dm-domain.de)
- The extension will automatically detect the OIDC provider, or you can set it manually
Sign In: DM
- After setting the domain, a login request will pop up (manual login: click the account icon in the bottom-left corner and select the DM login)
- Complete the authentication in your browser
- You'll be automatically redirected back to VS Code. This step may require a redirect confirmation depending on the browser and VS Code configuration.
Sign In: Engine Server
- click the account icon in the bottom-left corner and select the Engine Storage login
- Complete the authentication in your browser and confirm the redirects
Start Working
- Use the Commands Panel to download a release or setup a project
- The Info Panel displays your connection status and project information
Quick Start for New Projects
- Open an empty folder in VS Code
- Open the 3PQ sidebar → Commands Panel. As long as the folder has no 3PQ project, or its engine is not installed or no Data Manager URL is set, the panel only shows the card "Set up this workspace"
- Click "Start setup". The setup runs three steps one after the other:
- Install the CFG engine: downloads the latest engine and creates the project files (logs you in to the engine server first)
- Link the Data Manager: enter the Data Manager URL and log in
- Get the project data: the setup asks where the data comes from. Data Manager release (the first button) creates a release and installs it. Git repository asks for the clone URL, links the repository (in the folder of the setting
4pace.3pq.gitDirectoryOffset, otherwise in the project folder) and then installs only the databases of a new release, as they are not in the repository. With smart deployment you pick the Data Manager workspace for the release. A project that already has a linked repository only gets the databases, without Git there is no question and the release is installed
- If you cancel a step, the card shows where you stopped and "Continue setup" picks up there, also after a restart. When all steps are done, the message "Setup complete: your workspace is ready." appears and the panel shows the usual commands
- Start developing
"Show all commands" below the card hides the setup for the session. Until the engine is installed and a Data Manager URL is set, the card is back at the next start, and the button "Set up workspace" at the top of the commands brings it back right away. The command "4PACE_3PQ: Set up workspace" in the command palette runs the setup as well.
How to Use
Command Entry Points
The extension provides three ways to execute commands:
3PQ Sidebar
- Click the 4PACE icon in the Activity Bar
- Commands lock the sidebar buttons while executing to prevent conflicts
Context Menu
- Right-click on files or folders in the Explorer
- Available for items in
Content/Data/.../Scripts, Assets, and Databases folders
- Supports multi-selection for batch operations
Command Palette (Ctrl+Shift+P)
- Type "4PACE_3PQ" to see all available commands
- Execute commands from anywhere in VS Code
Safety Features
- Folder Restrictions: Most operations are limited to
Content/Data/.../Scripts, Assets, and Databases folders
- Confirmation Dialogs: Destructive operations require confirmation
- Button Locking: UI prevents concurrent operations that could cause conflicts
- Auto-backup: Git integration encourages regular commits
- Error Logging: Detailed logs available in Output Panel → "3PQ Extension"
Configuration
VS Code Settings
All settings are accessible via:
- Settings Panel in 3PQ sidebar
- VS Code Settings UI: Search for "3PQ"
- Workspace settings file:
.code-workspace or .vscode/settings.json
Project in a Subfolder (Monorepo)
By default the 3PQ project is expected in the workspace root. If it is a subfolder instead -
for example one package of a monorepo - point the extension at it with
4pace.3pq.projectDirectoryOffset:
{
"4pace.3pq.projectDirectoryOffset": "packages/cfg"
}
Two things to know:
- Set it in the workspace root, not in the project folder: in
<workspace root>/.vscode/settings.json or in the .code-workspace file. The extension has to
read this setting before it knows where the project is. Committing it once configures the whole
team.
- The path must be a folder inside the workspace. Absolute paths and
.. are ignored.
- The folder does not have to exist yet. If it is missing, the extension reports the missing project
with that exact path, so a mistyped offset is visible immediately.
Setting up a new project in a monorepo
Order matters: set the offset first, install the engine second.
- Create the monorepo and put
4pace.3pq.projectDirectoryOffset into its root settings.
- Reload the window.
- Run Get latest Cfg Engine. The confirmation names the folder the project will be set up in -
check it, then confirm. The folder is created and initialized (
configurator.json, Content/…,
.vscode/3pq.json, .vscode/launch.json), and nothing of the project lands next to it.
Everything else follows automatically: project detection, engine installation, uploads and
downloads, and the Git repository (which may sit above the project - automatic backup commits stay
limited to the project folder). Launch configurations shipped by the engine are additionally merged
into the launch config of the workspace root, because that is the one VS Code reads. Only
configurations whose name matches an engine configuration are added or adjusted; your own launch
configurations are left alone.
Git Configuration
For Git features to work properly, ensure Git is installed and configured:
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
Documentation
For detailed documentation with visual guides and FAQ, visit:
4Pace XWiki Documentation
| |