A comprehensive Zed extension that provides syntax highlighting and language server support for EdgeJS templates.
- Syntax Highlighting: Full syntax highlighting support for EdgeJS templates using tree-sitter
- Language Server: Automatic installation and integration of the Edge language server
- Auto-completion: Intelligent code completion for EdgeJS directives and expressions
- Error Detection: Real-time error detection and diagnostics
- Hover Information: Rich hover information for EdgeJS syntax
- Format on Save: Automatically formats EdgeJS templates on save
- Open Zed
- Go to Extensions (Cmd+Shift+X)
- Search for "Edge"
- Click Install
- Zed editor (version 0.100.0 or later)
- Node.js (automatically used by the extension for language server functionality)
The extension automatically installs and manages the edge-language-server
NPM package. No manual setup is required!
Once installed, the extension will automatically:
- Provide syntax highlighting for
.edge
files - Download and configure the language server on first use
- Offer intelligent code completion and error detection
You can configure the language server version in your Zed settings:
{
"lsp": {
"edge-language-server": {
"initialization_options": {
"edge_language_server_version": "latest"
}
}
}
}
- EdgeJS directives (@if, @each, @include, etc.)
- Template expressions ({{ }}, {{{ }}})
- HTML integration
- CSS and JavaScript embedded content
- Comments and documentation
- Format on save
If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.
- EdgeJS directives may not work as expected in certain scenarios