Skip to content

Herb Language Service coming soon

Package: @herb-tools/language-service


HTML+ERB language service built on the Herb parser, providing a compatible API with vscode-html-languageservice but with HTML+ERB template understanding.

Installation

shell
npm add @herb-tools/language-service
shell
pnpm add @herb-tools/language-service
shell
yarn add @herb-tools/language-service
shell
bun add @herb-tools/language-service

Features

  • Native HTML+ERB Support: Built specifically for HTML+ERB templates with deep understanding of Rails ActionView helpers.
  • Compatible API: Drop-in replacement for vscode-html-languageservice with the same interface.
  • Custom Data Providers: Supports extensible HTML data providers for framework-specific attributes.

Usage

Replace your import to get enhanced HTML+ERB support with no code changes:

diff
- import { getLanguageService } from 'vscode-html-languageservice'
+ import { getLanguageService } from '@herb-tools/language-service'

API Compatibility

This package provides the same API as vscode-html-languageservice.

Released under the MIT License.