World of Warcraft addon developper tools for VS Code
This World of Warcraft addon developer toolset for VS Code includes an improved Lua language grammar with WoW API knowledge, a .toc file grammar, colorization for both .lua source and .toc files, and more.
GlobalAPI.lua
, WidgetAPI.lua
and Events.lua
from the Helix
directory). Therefore, I cannot guarantee any longer that the bundle is 100% accurate with respect to the lastest WoW API..toc
file colorizationwow-bundle replaces VS Code's built-in Lua language grammar. Changes worth noticing are:
string.upper(mystring)
, mystring:upper()
and even ("somestring"):upper()
are supported!collectgarbage()
, date()
and type()
functions and the __mode()
metamethodwow-bundle's Lua grammar also tags a bunch of WoW-related stuff:
[table.]wipe()
, strjoin()
, etc.UIParent
, GameFontNormal
and suchHIGHLIGHT_FONT_COLOR_CODE
, UIDROPDOWNMENU_INIT_MENU
and such:AddLine()
, :SetTexture()
and such'CheckButton'
, 'BOTTOMLEFT'
, 'OVERLAY'
, 'player'
and such'OnEnter'
, 'OnShow'
and such'PLAYER_ENTERING_WORLD'
, 'VARIABLES_LOADED'
and suchAlso 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)
All VS Code themes should word fine with wow-bundle as long as they follow the standard scope naming convention.
However, for further colorization granularity, wow-bundle also includes four specific theme based on VS Code's default themes and called Light+ (WoW), Dark+ (WoW), Monokai (WoW) and Monokai Dimmed (WoW). To choose one of these themes, open the Color Theme picker with File > Preferences > Color Theme (or Code > Preferences > Color Theme on Mac).
wow-bundle's themes do not interfere with VS Code default colors for Lua or any other language you may use.
New since 1.0.1: I do however add italics to ALL comments
and underline to invalid/deprecated keywords. Should you whish to disable this feature, set the following setting into VS Code settings:
"editor.tokenColorCustomizations": {
"comments": {
"fontStyle": ""
}
}
New since 1.0.7: No more underline for invalids, not everybody likes it.
These are the currently known issues with wow-bundle. Should you whish to collaborate to the projet and help resolve these issues, you're welcome to submit a PR on Github.
Found an issue not listed here? Head up to Github and open an issue!
See Changelog.md.