lix-pm / lix.vscode

Visual Studio Code extension for lix
MIT License
17 stars 1 forks source link
haxe vscode vscode-extension

lix.vscode

CI Version Installs Downloads

This Visual Studio Code extension adds support for lix, a package manager for Haxe.

It makes the following assumptions:

Features

The extension adds the following features:

Initialize Project

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:

Haxe Version Selector

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:

Install Library

Click the "Install Library" button in the Haxe Dependencies view or run lix: Install Library from the command palette to install a library:

Update Library

The lix: Update Library command can be used to update an installed library to its latest available version.

Haxe Installation Auto-Detection

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).

Haxe Dependencies Support

With this extension, the installed libraries and their versions, as well as the Haxe standard library, are correctly displayed in the Haxe Depdendencies view:

Download Missing Dependencies

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.

.haxerc Support

This extension adds JSON syntax highlighting as well as hover hints and completion with a JSON schema for .haxerc files:

Output Channel

To troubleshoot issues with the extension, open the lix output channel to view the output of commands that have been executed: