VS Code Configuration Validation

Validate VS Code extension configurations against package.json manifests.

1|1|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/fabioc-aloha/AIRS_Data_Analysis --skill vs-code-configuration-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: VS Code Configuration Validation
Source: https://github.com/fabioc-aloha/AIRS_Data_Analysis/tree/main/.github/skills/vscode-configuration-validation
Command: npx skills add https://github.com/fabioc-aloha/AIRS_Data_Analysis --skill vs-code-configuration-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill prevents runtime errors in VS Code extensions caused by misconfigurations, such as unregistered commands or settings, which are not caught by standard compilation.

Core Features & Use Cases

  • Manifest Validation: Verifies that all configuration keys used in code are declared in package.json.
  • Command Registration Check: Ensures that every registerCommand call corresponds to a command defined in the extension's manifest.
  • Error Handling Guidance: Provides patterns for gracefully handling dynamic configuration keys.
  • Use Case: Before publishing an extension, use this Skill to audit its package.json against the codebase, guaranteeing that all user-facing settings and commands are correctly registered, thus preventing unexpected failures for users.

Quick Start

Run the VS Code configuration validation script to check for unregistered settings and commands.

Frequently Asked Questions about VS Code Configuration Validation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate my VS Code extension manifest against runtime code?

You can validate your VS Code extension manifest by running an automated PowerShell script that cross-references runtime code usage with `package.json` to identify unregistered configuration keys and commands.

Why does my VS Code extension fail at runtime despite compiling successfully?

VS Code extensions often fail at runtime due to misconfigurations like unregistered commands or settings that standard compilation cannot catch. Manifest validation audits these declarations to prevent unexpected failures.

How do I check for unregistered commands in my VS Code extension?

To check for unregistered commands, cross-reference your `registerCommand` calls with the command definitions in your extension's `package.json` manifest using an automated validation script.

What is the best way to audit VS Code configuration keys before publishing?

The best way to audit VS Code configuration keys is to validate that all keys used in your codebase are declared in `package.json`, ensuring robust extension development and preventing user-facing runtime errors.

How do I handle dynamic configuration keys in VS Code extension development?

You can handle dynamic configuration keys in VS Code extension development by applying specific audit patterns and error handling guidance to gracefully manage settings that are not statically declared in the manifest.

Can I use a PowerShell script to check unregistered settings in VS Code extensions?

Yes, you can use an automated PowerShell script to validate VS Code extension configurations by scanning the codebase for unregistered settings and commands, ensuring they match the `package.json` declarations.