This Visual Studio Code extension adds support for lix, a package manager for Haxe.
It makes the following assumptions:
- npmand- npxare available on the command line
- vshaxe's "haxe.executable"and"haxelib.executable"settings are at their default values"auto"(existing projects may need an update if they explicitly specify the binaries innode_modules)
The extension adds the following features:
To get started with lix in a project that doesn't use it yet, run the lix: Initialize Project command from the command palette. This does the following:
- installs lix via npmand creates apackage.jsonif needed
- creates a new scope / .haxercfile (equivalent tolix scope create)
When a *.hx, *.hxml or .haxerc file is open, the lix extension displays the Haxe version selected for the current project in the bottom right of the status bar:
To switch to another installed version, or install a different one, simply click on it or run the lix: Select Haxe Version command:
Click the "Install Library" button in the Haxe Dependencies view or run lix: Install Library from the command palette to install a library:
The lix: Update Library command can be used to update an installed library to its latest available version.
If the "haxe.executable" and "haxelib.executable" settings are at their default values "auto", they are automatically resolved to the haxe / haxelib scripts provided by lix (either local or global).
With this extension, the installed libraries and their versions, as well as the Haxe standard library, are correctly displayed in the Haxe Depdendencies view:
To install missing dependencies (libraries or Haxe itself), you can run the lix: Download Missing Dependencies from the command palette. This is equivalent to running lix download on the command line.
This extension adds JSON syntax highlighting as well as hover hints and completion with a JSON schema for .haxerc files:
To troubleshoot issues with the extension, open the lix output channel to view the output of commands that have been executed:






