mirror of
https://github.com/LukeHagar/volar-docs.git
synced 2025-12-06 04:22:01 +00:00
main
VolarJS Documentation Hub
VolarJS powers Vue tooling across editors, yet the official docs are scattered. This repository collects practical, engineer-focused notes about the Volar language server so teams can understand, extend, and debug it without spelunking through source code.
Scope
- Explain Volar architecture: core packages, key entrypoints, and how they plug into editor hosts.
- Document the LSP surface that Volar implements (capabilities, custom requests, known quirks).
- Share recipes for common tasks such as adding diagnostics, language features, or IDE integrations.
- Track ecosystem tooling (volar-service modules, language plugins, CLI utilities) and their compatibility.
- Publish getting-started and integration guides (e.g., combining Volar with JSON/YAML language services).
Roadmap
- Landscape survey – catalogue existing blog posts, RFCs, and source references.
- LSP deep dive – map each request / notification to the Volar handlers and note deviations from the spec.
- Extensibility guide – document how to write and register custom language features.
- Debugging playbook – logging, tracing, and profiling techniques for the Volar server process.
Repo Structure
Planned directories:
docs/– longer-form guides (architecture, extensibility, debugging). See the docs index for a full table of contents.docs/live-examples.md– curated list of real projects using VolarJS (VS Code extension, Neovim/LSP integrations, online IDEs, CLI tooling, community plugins).- Key guides (see docs index for the full list):
docs/getting-started.mddocs/building-lsp-json-yaml.mddocs/plugin-authoring.mddocs/source-map-and-code-gen.mddocs/configuration-and-projects.mddocs/performance-and-debugging.mddocs/testing-and-ci.mddocs/telemetry-and-observability.mddocs/workspace-diagnostics.mddocs/error-handling-and-resilience.mddocs/ux-best-practices.mddocs/lsp-benchmarking.mddocs/troubleshooting-faq.mddocs/release-and-upgrade.mddocs/vetur-migration.mddocs/custom-diagnostics.mddocs/monaco-playground.mddocs/volar-kit-and-editor.mddocs/typescript-plugin-deep-dive.mddocs/volar-service-catalog.mddocs/cli-integration.mddocs/editor-integration-alt.mddocs/cross-language-recipes.mddocs/package-api-reference.mddocs/response-formatting.mddocs/cross-language-recipes.mddocs/package-api-reference.mddocs/telemetry-and-observability.md
reference/– API and protocol notes, ideally generated from code comments over time.examples/– minimal projects showing custom Volar features in action.examples/json-yaml-lsp– runnable server that mixes Volar with JSON/YAML services.
Contributing
Issues and PRs are welcome. Please prefer:
- Real-world examples that demonstrate a concept.
- Links back to Volar source or specs for verification.
- Clear reproduction steps for bugs or editor quirks.
This repo is intentionally lightweight—start by dropping notes in Markdown, then iterate toward polished docs once content stabilizes.
Description