Volar YAML Language Service

0.0.70 · active · verified Sun Apr 19

volar-service-yaml is a dedicated Volar plugin designed to integrate the robust `yaml-language-server` into Volar-powered development environments. This integration provides comprehensive language features for YAML files, including syntax highlighting, intelligent auto-completion, real-time schema validation, and diagnostic reporting, directly within projects utilizing Volar's language service, commonly found in Vue.js applications. Currently at version 0.0.70, this package primarily acts as a bridge, enabling sophisticated YAML tooling to function seamlessly within Volar's architecture. Its release cadence is generally synchronized with updates to the main Volar language service (specifically targeting `~2.4.0`), ensuring ongoing compatibility and leveraging an established, widely used YAML language server to offer superior developer experience for YAML configuration files within the Volar ecosystem.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to integrate the YAML language service into your Volar configuration file to enable YAML features.

/* volar.config.js */
module.exports = {
	services: [
		require('volar-service-yaml').create(),
	],
};

// For a TypeScript-based Volar config (e.g., volar.config.ts with ts-node):
// import { create } from 'volar-service-yaml';
// import type { VolarConfig } from '@volar/language-service';
// export default <VolarConfig>{
// 	services: [
// 		create(),
// 	],
// };

view raw JSON →