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

Lua Defold Language Server

Lerg

|
3 installs
| (0) | Free
Lua language server for Defold projects: flow-sensitive type checking, Defold engine and library zip APIs without hand-written stubs, completion, navigation and an always-aligning formatter.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Lua for Defold (luadls)

A Lua language server for Defold projects.

  • Type checking that follows the code: a field checked for nil stays checked, and assert helpers narrow without annotations.

  • The engine API for your Defold version, downloaded once. Set it in .luadls.json at the project root:

    {"defold": "1.13.2"}
    
  • Library dependencies are read straight from the zips Defold fetched into .internal/lib, and open read-only. When game.project names one that isn't fetched, a notification offers Fetch Libraries, as the Defold editor does.

  • luacheck-style checks: unused locals, shadowing, unreachable code, and more.

  • A formatter that keeps your lines and always aligns =, table fields and trailing comments.

Disable other Lua extensions in the workspace, or every problem is reported twice.

The bundled luadls binary is also a command line tool: luadls check, luadls fmt, luadls hover file:line:col and more. Run luadls help.

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