Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>WoW Lua Language ServerNew to Visual Studio Code? Get it now.
WoW Lua Language Server

WoW Lua Language Server

TradeSkillMaster

|
1,100 installs
| (2) | Free
Language server for WoW addon development - 9,000+ API stubs, 80+ diagnostics, event typing, XML frame scanning, and more
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

WoW Lua Language Server

A language server for World of Warcraft addon development. Built specifically for WoW Lua - not a general-purpose Lua LS with WoW bolted on.

Features

  • 9,000+ WoW API stubs built in - every function, frame type, enum, and global for retail, classic, classic era, and WoW Forever. No setup, no addon manager.
  • Event handler typing - SetScript("OnEvent", handler) types self, event, and per-event payload params. Works with custom event systems too via the @event annotation.
  • XML frame scanning - automatically scans .xml files for frame definitions, virtual templates, parentKey children, inherits chains, and mixin attributes.
  • TOC file support - hover documentation, completions, go-to-definition on file paths, and diagnostics for .toc files. SavedVariables are auto-detected as allowed globals.
  • Metatable inference - understands setmetatable + __index, chained metatables, __call, operator metamethods. Your OOP patterns just work.
  • Correlated narrowing - check one return value, and the LS narrows the rest. Eliminates false positives from multi-return functions.
  • Mixin and template support - CreateFrame("Frame", nil, nil, "BackdropTemplate") returns Frame & BackdropTemplate automatically.
  • Flavor filtering - declare target flavors and get warnings on APIs that don't exist in all your targets.
  • Secret values - knows which retail 12.x APIs can return secret values and flags the comparisons, arithmetic, table keys, and API arguments that would error at runtime.
  • 80+ diagnostics - type safety, nil checking, annotation correctness, code quality, and WoW-specific checks. Each one individually configurable.
  • Diagnostic plugins - write custom Lua scripts to enforce project-specific conventions.
  • CI-ready CLI - wowlua_ls check path/to/addon lints your addon and exits non-zero on diagnostics.
  • Powerful generics - parameterized classes, constrained type parameters, function-type projections. Class-level generics propagate through method calls automatically.
  • Builder pattern - @builds-field tracks progressive type construction across chained method calls.

Getting started

Open a WoW addon folder. The extension automatically scans .lua files, loads WoW API stubs, and starts reporting diagnostics. No configuration required.

If you have the Lua extension (sumneko.lua) or Ketho's WoW API extension installed, disable them for your addon's workspace so their hovers, completions and diagnostics don't duplicate wowlua-ls's. wowlua-ls doesn't read LuaLS's .luarc.json. Coming from LuaLS covers both, and what else differs.

To restart the language server, run WoW Lua: Restart Language Server from the Command Palette.

For project-specific settings, add a .wowluarc.json to your addon root:

{
  "ignore": ["Libs/"],
  "flavors": ["retail", "classic"],
  "diagnostics": {
    "enable": ["need-check-nil"]
  }
}

Supported platforms

The extension bundles the language server for Windows (x64, and Arm through Windows 11's emulation), macOS (Intel and Apple silicon) and glibc-based Linux (x64 and arm64, including dev containers on Apple silicon Macs). On any other platform, build the server and set its path:

Setting Description
wowlua-ls.server.path Absolute path to a wowlua_ls binary to run instead of the bundled one. User settings only (Remote settings when connected to a container, WSL or SSH host); workspace settings can't set it.

Annotations

The LuaLS ---@ annotation syntax:

@param @return @type @class @enum @field @alias @overload @generic @cast @as @deprecated @nodiscard @meta @diagnostic @see

Plus WoW-specific extensions:

@defclass @builds-field @built-name @built-extends @type-narrows @correlated @flavor-narrows @constructor @accessor @noreturn

Documentation

Full documentation at tradeskillmaster.github.io/wowlua-ls

  • Getting Started
  • Annotation Guide
  • Configuration Reference
  • Diagnostic List
  • Discord

License

GPL-3.0 - see LICENSE.

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