Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>pds4-validateNew to Visual Studio Code? Get it now.
pds4-validate

pds4-validate

maxmahlke

|
5 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

pds4-validate-vscode

Features - Install - Usage - Configuration

Use Visual Studio code to run PDS validate on the currently open file and display the diagnostics in the editor.

Features

  • Runs validation asynchronously without blocking the editor
  • Keep a persistent report file next to the validated product
  • Displays warning and error messages directly in the Problems panel and in-file diagnostics
  • Supports run-time argument changes and reusable workspace presets

Install

For macOS users, this is the recommended setup flow.

  1. Install prerequisites.
# Install Homebrew (if not installed): https://brew.sh
brew install node git

node includes npm, so no separate npm package is required.

  1. Clone the repository and enter the project folder.
git clone https://github.com/maxmahlke/pds4-validate-vscode.git
cd pds4-validate-vscode
  1. Install project dependencies and the VS Code packaging tool.
npm install
npm install -g @vscode/vsce
  1. Package the extension as a VSIX file.
vsce package
  1. In VS Code, run Extensions: Install from VSIX... from the Command Palette and select the generated .vsix file.

  2. Ensure the PDS validate CLI is available.

Either:

  • install/provide validate on your PATH, or
  • set pds4-validate.validateBinaryPath in VS Code to the full path of the validate binary.

Quick check:

validate --help

If this command fails, configure pds4-validate.validateBinaryPath before running the extension.

If your shell still cannot find validate after installation, restart VS Code so it picks up updated PATH settings.

Usage

Open Command Palette and run:

  1. Validate Current File - PDS4

    • Runs validation on the active file.
    • Uses the last selected extra arguments (if any).
  2. Validate Current File With Arguments - PDS4

    • Opens a selection flow to choose arguments:
      • Enter custom arguments
      • Run with no extra arguments
      • Pick from workspace presets
      • Pick from recent argument history
    • Saves selected args as last-used args.
  3. Edit Validation Preset - PDS4

    • Creates the preset file if it does not exist yet.
    • Lets you select an existing preset and update name/args.

Configuration

The extension adds one VS Code setting:

  1. pds4-validate.validateBinaryPath
    • Type: string
    • Default: empty
    • Behavior:
      • If set: uses this exact binary path.
      • If empty: uses validate resolved from PATH.

Workspace preset file

You can define shared presets in:

  • .vscode/pds4-validate.json

When the file is first created, it contains this default preset:

Format:

{
	"presets": [
		{
			"name": "Config File",
			"args": "-c config.txt"
		}
	]
}

These presets appear in the With Arguments quick picker. You can update the preset file through Edit Validation Preset - PDS4.

Report File Handling

The extension always uses validate's report-file output for the report. If a report-file is defined via the -r|--report-file arguments, this file is used. Else, the extension uses --report-file validate_<base>.txt automatically, where <base> is the basename of the validated file.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft