Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Zilvereyes WoW TOCNew to Visual Studio Code? Get it now.
Zilvereyes WoW TOC

Zilvereyes WoW TOC

Zilvereyes

|
2 installs
| (0) | Free
WoW TOC grammar, editor theme, LuaLS SavedVariables sync, file reference warnings and an add-on report
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-wow-toc for VS Code

The MIT License GitHub

This World of Warcraft addon developer toolset for VS Code includes a .toc file grammar and colorization.

Features

  • .toc file colorization
  • starting point snippet

Grammars

> Toc files

Also included is a simple grammar for .toc files with support for keywords (like ## Interface, ## Author and such) and X-keywords (like ## X-Date, ## X-Website and such)

WoW TOC Theme showing directives, WoW color escapes, client conditions, and file variables in Preview.toc

Zilvereyes recovery preview

Run .\Open-Preview.ps1 from this worktree. It opens Preview.toc with WoW TOC Theme in a fresh VS Code profile with its own extensions directory. Each preview uses a temporary, separate user profile.

  • npm ci --ignore-scripts followed by npm test checks the grammar with TextMate and Oniguruma, including token colors.
  • .\Open-Preview.ps1 -Verify checks extension discovery, theme selection and TOC language detection in VS Code.
  • Use Developer: Inspect Editor Tokens and Scopes in the preview to verify the color and scope of an individual token.

The grammar starts from the recovered VS Code snapshot RsU4.json from 15 June 2026. Conditional and file variable rules come from the earlier toc.tmLanguage.json download and have separate scopes inside file entries. The reconstructed theme uses the 17 TOC rules in the historical settings snapshot XfkR.json, mapped to the merged grammar’s scopes. The backup also contains the earlier theme palette in Rl5B.json. These tests cover editor highlighting. The game client interprets directives according to its build.

TOC and XML file reference warnings

Set these workspace settings for the add-on you are editing:

{
  "zilvereyes.wowToc.xmlReferenceManifest": "MyAddon.toc",
  "zilvereyes.wowToc.xmlReferenceClient": "classic-era",
  "zilvereyes.wowToc.xmlReferenceTextLocale": "enUS"
}

The manifest is explicit. Select classic-era for Classic Era (Vanilla) or retail for Retail (Standard). The settings picker also lists the supported Classic expansions. Set the optional text locale when the add-on uses locale restrictions or [TextLocale].

The check reads the TOC through the SDK, applies AllowLoadGameType and ExcludeLoadGameType on the manifest and its file lines, and supports inline AllowLoadTextLocale and AllowLoad for the in-game editor context. It expands [Family], [Game] and [TextLocale] in TOC Lua and XML paths. Unknown client or locale conditions, unsupported conditions and unresolved variables suppress diagnostics for their affected entries. The XML walk follows Include recursively and resolves literal Include and Script paths from the referring XML file. Missing Lua or XML selected by the TOC is reported on its TOC line. A missing XML reference target is marked on the value of the referring XML file attribute. The Problems panel refreshes on client changes and when relevant files are created, removed or saved. The TOC format reference describes the loading directives and file variables.

Check AddOn

Run WoW TOC: Check AddOn from the Command Palette in a trusted local add-on folder. Open a root-level TOC to check it explicitly. From another editor, the command uses the configured reference manifest, falls back to the SavedVariables manifest, or offers the folder's TOCs for you to choose. It uses the workspace's client and text locale settings and reads the saved files on disk.

The read-only report lists account and per-character SavedVariables, with conditional declarations labelled, followed by active Lua and XML references in traversal order. Nested Includes appear where they occur, and repeat references stay visible. Click a found path to open its file or click the source location at the end of a row to jump to its TOC entry or XML attribute. Missing paths, unverified paths, incomplete XML and Include cycles are labelled in place. The report describes the extension's client-aware file selection and shows how many manifest entries it skipped.

SDK dependency

sdk-source.json pins the source revision of wow-addon-sdk. On either laptop, check out and build that SDK revision, then bundle its public TOC, XML and SavedVariables APIs into the extension. The SDK owns parsing and source ranges. The extension supplies the client selection, file checks and VS Code diagnostics. See the SDK's editor consumer contract for the API responsibilities.

git clone https://github.com/Zilvereyes/wow-addon-sdk.git
git -C wow-addon-sdk switch --detach af12ebfaee634459ca8c6db6de0aadf42ee31f19
npm --prefix wow-addon-sdk ci
npm --prefix wow-addon-sdk run build

# From the extension checkout with the SDK next to it:
npm ci
npm run build:sdk -- ../wow-addon-sdk
npm test

LuaLS SavedVariables sync uses its own setting, zilvereyes.wowToc.savedVariablesManifest.

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