Zed-Haxe
Zed-Haxe copied to clipboard
LSP support & syntax highlighting for Haxe.
Haxe language support for Zed
[!NOTE] This extension is now published! Open the
Extensionspanel (Ctrl+Shift+X) and search for "Haxe".
Usage
The syntax highlighting should appear immediately.
The backing language server should be downloaded automatically in the background.
To make the LSP use a specific .hxml configuration, create a .zed/settings.json file in your project root:
{
"lsp": {
"haxe-language-server": {
"initialization_options": {
"displayArguments": ["DevEnv.hxml"]
}
}
}
}
Additional settings you may want to pass to the language server: (non-exhaustive)
{
"lsp": {
"haxe-language-server": {
"initialization_options": {
"displayServerConfig": {
"path": "/your/custom/haxe/here"
}
},
"settings": {
"haxe": {
"buildCompletionCache": true,
"displayHost": "127.0.0.1",
"displayPort": 6001
}
}
}
}
}
Install nightly
To use dev Zed extensions, you will need to have Rust compiler installed.
You will also need to git clone this repository.
[!TIP]
If you're reading this with a web browser, you might also click the green< > Codebutton at the top of the page and chooseDownload ZIP.
In the Extensions panel (Ctrl+Shift+X), click Install Dev Extension in the top right corner.
Choose the location of the downloaded directory.
[!IMPORTANT]
This process might take a few minutes.
If this is your first time installing dev extensions, Zed may need to download its WASM toolchain (roughly 500MiB).
If you're not sure if the installation process is still ongoing, consult the editor logs atCtrl+Shift+P>zed: open log.