Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Dota2 Lua AnnotationsNew to Visual Studio Code? Get it now.
Dota2 Lua Annotations

Dota2 Lua Annotations

robincode

|
528 installs
| (0) | Free
Dota2 lua api annotations for lua-language-server
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

[!NOTE]
Since I no longer use the sumneko.lua plugin and no longer maintain this repository.

Dota2 Lua Annotations

Dota2 lua api annotations for lua-language-server.

API is exported from ModDota/dota-data.

  • Install VSCode extension sumneko.lua
  • Install VSCode extension robincode.dota2-lua-annotations

NOTE: This extension is force Lua.runtime.version to LuaJIT, recommend using VSCode Profiles.

Custom Types

  • Ability or Item DataDriven
---@param ctx AbilityContext|{max_damage:number}
function OnCastAbility(ctx)
    local caster = ctx.caster;
    local maxDamage = ctx.max_damage;
end

Snippets

  • oncast
  • oncast_target
  • classmodifier or classbuf
  • classability
  • classitem

Developer

pnpm install
pnpm dump
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft