Skip to content

Commit

Permalink
updated from 1.60.0 to 1.97.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHaxe committed Jan 4, 2025
1 parent 2b4b5a2 commit a96af70
Show file tree
Hide file tree
Showing 317 changed files with 7,093 additions and 735 deletions.
4 changes: 4 additions & 0 deletions .haxerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version": "4.3.6",
"resolveLibs": "scoped"
}
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.codeActionsOnSave": {
"source.sortImports": true
"source.sortImports": "explicit"
}
}
},
"explorer.autoReveal": true
}
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@
This extern library makes it possible to write extensions for [Visual Studio Code](https://code.visualstudio.com/)
using [Haxe](https://haxe.org/).

VS Code API version: **1.60**
VS Code API version: **1.97**

**NOTE**: Requires Haxe 4 or later
**NOTE**: Requires Haxe 4.3 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](https://github.com/HaxeFoundation/hxnodejs) library.

The current "proposed" APIs are provided are provided via `VscodeProposed` top-level class for the `vscode` namespace
and the `vscode.proposed` package.
~~The current "proposed" APIs 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:

```haxe
class HelloHaxe {
@:expose("activate")
Expand Down
4 changes: 2 additions & 2 deletions haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"description": "Visual Studio Code extern library",
"url": "https://github.com/vshaxe/vscode-extern",
"license": "MIT",
"version": "1.60.0",
"releasenote": "Update to VSCode 1.60",
"version": "1.97.0",
"releasenote": "Update to VSCode 1.97",
"classPath": "src",
"contributors": ["nadako", "Gama11"],
"dependencies": {
Expand Down
Loading

0 comments on commit a96af70

Please sign in to comment.