mirror of
https://github.com/LukeHagar/volar-docs.git
synced 2025-12-06 04:22:01 +00:00
4.6 KiB
4.6 KiB
VolarJS Docs Index & Table of Contents
Use this index to jump to any guide. Each entry lists key sections so you can dive straight into the content you need.
Core Guides
- Getting Started – mental model, package overview, installation, bootstrapping, integration paths, troubleshooting.
- Building a JSON/YAML LSP – architecture, setup steps, performance/cancellation, diagnostics/quick fixes, packaging.
- Plugin Authoring – language plugins, language-service plugins, TypeScript bridge, registration, best practices.
- Source Map & Code Gen –
@volar/source-mapand@volar/code-genAPIs, examples, debugging tips. - Configuration & Projects – Take Over Mode, monorepos, multi-root workspaces, settings synchronization.
- Performance & Debugging – profiling, throttling, hotspots, telemetry hooks, troubleshooting scenarios.
- Testing & CI – unit/integration testing, VS Code/Neovim harnesses, snapshot strategies, CI workflows.
- Telemetry & Observability – logging, telemetry events, work-done progress, health endpoints.
- Workspace Diagnostics – protocol primer, result IDs, incremental updates, partial results.
- Error Handling & Resilience – schema fallbacks, configuration validation, restart strategies.
- UX Best Practices – progress indicators, notifications, settings UX, editor-specific guidance.
- LSP Benchmarking – metrics, tooling (
lsp-bench, custom harnesses), reporting, CI automation. - Troubleshooting & FAQ – quick fixes for duplicate diagnostics, schema fetch failures, logging.
- Release & Upgrade Guide – version matrix, upgrade checklist, CI matrices.
- Vetur Migration – step-by-step instructions for moving from Vetur to Volar.
- Custom Diagnostics – recipe for building project-specific diagnostic plugins.
- Monaco Playground – integrating Volar with browser playgrounds via
@volar/monaco. - Volar Kit, Editor & Monaco – bootstrap servers with
@volar/kit, embed language services in custom editors, and integrate with Monaco. - TypeScript Plugin Deep Dive –
@volar/vue-typescript, compiler options, macros, diagnostics control. - Volar Service Catalog – official/community
volar-service-*plugins and configuration patterns. - CLI Integration – building
vue-tsc-style headless tooling, workspace diagnostics in CI. - Alternative Editor Integration – guidance for JetBrains, Sublime, Neovim, Emacs, custom editors, VS Code Web.
- Cross-Language Recipes – adapting Volar’s architecture to Astro, Svelte, Marko, Tailwind-heavy setups, etc.
- Package API Reference – quick lookup for
@volar/editor,@volar/language-service,@volar/typescript, etc. - Response Formatting & Content – best practices for diagnostics, hovers, completions, and code actions.
Example Catalogue
- Live Examples – curated list of editor extensions, online IDEs, CLI tooling, and community plugins powered by VolarJS.
Examples
examples/json-yaml-lsp– runnable project combining Volar with JSON/YAML services, showcasing diagnostics, quick fixes,$refdefinitions, workspace diagnostics, and configuration reloads.
Suggested Reading Order
- Start with Getting Started to grasp the core packages.
- Follow with Plugin Authoring and Source Map & Code Gen if you plan to extend Volar.
- Consult Configuration & Projects before rolling out to monorepos or multi-root workspaces.
- Use Performance, Testing, Telemetry, and Error Handling guides to harden your server.
- Refer to UX Best Practices and Benchmarking when polishing the user experience and ensuring regressions don’t slip in.
Cross-Links
Every guide links back to this index via its navigation header. If you create new docs, add them here so the ecosystem stays discoverable.