vscode

Visual Studio Code extern library
https://github.com/vshaxe/vscode-extern

To install, run:

haxelib install vscode 1.60.0 

See using Haxelib in Haxelib documentation for more information.

README.md

Visual Studio Code API externs for Haxe

CI Haxelib Version Haxelib Downloads Haxelib License

This extern library makes it possible to write extensions for Visual Studio Code using Haxe.

VS Code API version: 1.60

NOTE: Requires Haxe 4 or later

Usage

Global functions and variables from the vscode namespace are available through Vscode top-level class, while types defined in vscode namespace are located in the vscode package. The node.js API externs are provided by the hxnodejs library.

The current "proposed" APIs are provided are provided via VscodeProposed top-level class for the vscode namespace and the vscode.proposed package.

VS Code expects a .js module that exports the activate function that will be called upon extension activation. In Haxe this is done using the @:expose metdata.

Example:

class HelloHaxe {
    @:expose("activate")
    static function activate(context:vscode.ExtensionContext) {
        Vscode.window.showInformationMessage("Hello from Haxe!");
    }
}

compile with:

haxe -lib vscode -js hellohaxe.js HelloHaxe

For a complete extension example, check the example/ directory inside this repository.

For generated extern API documentation, proceed here.

For general information about how to extend Visual Studio code, check their documentation.

Contributors
nadako
Gama11
Version
1.60.0
Published
3 years ago
Dependencies
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub