Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated from 1.60.0 to 1.97.0 #16

Merged
merged 3 commits into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: krdlab/setup-haxe@v1.1.4
- uses: krdlab/setup-haxe@v1.5.1
with:
haxe-version: 4.3.6
- run: |
haxelib install hxnodejs
haxelib git dox https://github.com/HaxeFoundation/dox
Expand Down
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
Loading