Socket
Socket
Sign inDemoInstall

@astrojs/language-server

Package Overview
Dependencies
63
Maintainers
3
Versions
142
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @astrojs/language-server

The Astro language server, implement the [language server protocol](https://microsoft.github.io/language-server-protocol/)


Version published
Weekly downloads
128K
decreased by-2.2%
Maintainers
3
Install size
14.2 MB
Created
Weekly downloads
 

Readme

Source

@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.

FAQs

Last updated on 22 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc