@astrojs/language-server
The Astro language server, implement the language server protocol
Folder structure
βββ bin # .js file used to start the server
βββ dist # Compiled files, generated by TypeScript
βββ src # Source files
β βββ core # Core code such as .astro file parsing, configuration manager, document definition etc
β βββ plugins # Modules for the different languages supported in .astro files
βββ test # Tests
βββ types # Types injected into Astro files by the language server under certain conditions
Troubleshooting
Formatting does not work
Using VS Code? This section does not apply to you, the VS Code extension includes both Prettier and the Astro plugin by default.
The Astro language server uses Prettier to format Astro files, but does not include prettier or prettier-plugin-astro by itself as dependencies in order to keep the dependency count low and allow users to better control the version of Prettier they want to use.
As such, if you want to use formatting, you'll need to install prettier and prettier-plugin-astro as dependencies in your project.