Kontakt API Tools (VS Code Extension)This extension provides language support for developing Lua scripts that use the Native Instruments Kontakt Lua API. It is a drop-in extension that supplies EmmyLua definition files to the Lua Language Server, enabling proper code completion, suggestions, hover information and editor support when working with Kontakt Lua scripts. This makes writing scripts for the Kontakt Lua API much easier and more productive without constantly having to refer to the (partly incomplete) external online documentation. Additionally, since this is basically an add-on for the Lua Language Server, it needs the Lua Language Server extension to be installed and enabled in VS Code. If you don’t have it yet, you will be prompted to install it when you install this extension. Why this extension?Native Instruments exposes a Lua API for Kontakt, but no official language-server-compatible definitions are available. As a result, Lua scripts written for Kontakt lack:
This extension fills that gap by providing definition files based on the official Kontakt API reference, additional testing, and legacy documentation (Creator Tools).
Features
Requirements
How it worksThis extension ships a set of EmmyLua-compatible definition files describing the Kontakt Lua API. On activation, these definitions are automatically registered with the Lua Language Server using VS Code’s workspace library mechanism. UsageOnce installed, editor features are automatically available when editing Example:
You should see:
API CoverageThe extension covers the publicly documented Kontakt Lua API, including the following modules:
Notes on completenessThe official Kontakt API documentation is incomplete in some areas. Where possible, I added missing or undocumented functions (e.g. parts of the Filesystem module) based on:
Open SourceThis extension is fully open source. Contributions are welcome, especially:
References
|
Auto completion and signature help in action. This helps you discover functions and their parameters quickly while you type.
Hover documentation providing function descriptions and parameter info when hovering over API symbols.