vscode 1.9.1

Visual Studio Code extern library

Released 2017-02-20.

To install, run:

haxelib install vscode 1.9.1

See using Haxelib in Haxelib documentation for more information.

Current version1.9.1
StatisticsInstalled 29 times
Tags extern, js


Build Status

Visual Studio Code API externs for Haxe

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

VS Code API version: 1.9

NOTE: Requires Haxe 3.3RC1 or later


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.

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.


class HelloHaxe {
    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.