VS Code Extension
Surface missing, extra, and empty translations directly in your editor.
The LangSync VS Code extension brings locale validation into your editor. It
runs the same checks as langsync validate, in-process, and reports missing,
extra, and empty translation keys as native VS Code diagnostics while you work.
The extension is in active development. Phase 1 (described here) covers locale-aware diagnostics and the validate workflow. Editor intelligence (autocomplete, hover, go-to-definition) is planned for a later phase.
Installation
The extension is not yet on the Visual Studio Marketplace or Open VSX. Until it
is published, install it from a locally built .vsix package:
This produces packages/vscode-extension/langsync-<version>.vsix. Install it in
VS Code with:
You can also install it from the Extensions view: open the ... menu and choose
Install from VSIX....
Activation
The extension activates only when a workspace folder contains a LangSync config
file (langsync.config.{ts,js,mjs,json}, .langsyncrc, or .langsyncrc.json).
Workspaces without LangSync are unaffected.
Multi-root workspaces are supported: each folder with a LangSync config is validated independently, with its own diagnostics.
Diagnostics
Locale files are validated automatically when opened and saved, and whenever a config or locale change is detected. Issues appear in the Problems panel and inline at the relevant JSON key:
| Issue type | Default severity | Meaning |
|---|---|---|
missing | Error | A key from the reference locale is absent. |
extra | Warning | A key exists that is not in the reference locale. |
empty | Information | A key is present but its translation is empty. |
Missing keys are reported at the top of the affected file (the key does not yet exist to point at); extra and empty keys are highlighted at the exact key.
Commands
Run these from the Command Palette:
| Command | Action |
|---|---|
LangSync: Validate | Re-validate every configured workspace root. |
LangSync: Sync | Sync the active project's locales, then revalidate. |
LangSync: Find Missing | Report missing keys for the active project. |
LangSync: Open Config | Open the LangSync config for the active project. |
Status bar
A status bar item summarizes the current state across all configured roots:
$(check) LangSync— all locale files are consistent.$(warning) LangSync: N issues— aggregate issue count; click to open the Problems panel.$(sync~spin) LangSync— validation in progress.
Settings
| Setting | Default | Description |
|---|---|---|
langsync.autoValidateOnSave | true | Validate locale files when they are saved. |
langsync.autoValidateOnOpen | true | Validate locale files when they are opened. |
langsync.diagnosticSeverity.empty | information | Severity for empty translations. Use none to disable empty diagnostics. |
langsync.configPath | null | Path to a config file, relative to the workspace folder. Its directory is used as the validation working directory. Useful for monorepos with ambiguous discovery. |