edge-language-server
v1.7.1
Published
A language server for the Edge templating engine.
Downloads
3,590
Maintainers
Readme
Edge Language Server
This is a language server for the Edge templating engine, used by the AdonisJS framework.
Features
- Completions: Provides completions for directives, helpers, and variables.
- Hover: Provides hover information for directives and interpolations.
- Definitions: Provides definitions for
@includeand@componentdirectives. - Validation: Validates the syntax of Edge templates.
Installation
npm install --ignore-scriptsNote: The --ignore-scripts flag is required to prevent build errors with the tree-sitter-edge package.
Usage
npm run build
npm run startDevelopment
npm run devTree-sitter Parser
This language server uses a tree-sitter parser for Edge templates. The parser is available as a separate npm package called tree-sitter-edge.
The language server will automatically use the published tree-sitter-edge npm package if it's available in your dependencies. If not, it will fall back to using a local WASM file.
To use the published npm package, simply add it to your dependencies:
npm install tree-sitter-edge --ignore-scripts