Install from within your IDE's preferences or from the Jetbrains Marketplace.
- Requires IntelliJ IDEA 211 (2022.1)
- Support for declaring optional function parameters. Supported in both short-form and long-form:
fun(optionalParam?: number): void
---@param optionalParam? number
- Improved displayed name for types, in particular anonymous tables. You'll now see something like
{ a: 1 }
, rather than justtable
. - Generic functions are now assignable to other generic functions.
- General performance improvements, particularly when checking variance compatibility of deeply nested shapes.
- Ensure global classes (i.e. built-ins) can be extended.
- "Multiple statements in one line" wrapping setting. Implemented by Jochem Pouwels.
- Improved completion by including literal named fields.
- Improved support for lambda classes with static methods.
- Fixed incorrect overload matching when arguments were provided as multiple results from a function call.
- Fixed incorrect type deductions in the presence of aliased generics.
- Fixed unused local/param warnings incorrectly being reported in
.def.lua
files. - Fixed generic parameter resolution through aliases and shapes.
- Fixed type of anonymous table members derived from generic params.
- Fixed aliased shape equality.
- Fixed generic concreteness handling within function bodies (including recursive calls).
- Fixed issue with tuples params passed to a callable type causing a stack overflow.
- Fixed "}" sometimes being generated instead of "end". Implemented by Jochem Pouwels.
- Fixed incorrect declaration type inference in the presence of
@not
. - Fixed generic resolution within type annotations on return statements.
- Fixed debug.traceback() type definitions. Implemented by Sebastian Gładki.