Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/withastro/language-tools
Language tools for Astro
https://github.com/withastro/language-tools
editor-plugin lsp-server typescript-plugin vscode
Last synced: about 1 month ago
JSON representation
Language tools for Astro
- Host: GitHub
- URL: https://github.com/withastro/language-tools
- Owner: withastro
- License: mit
- Created: 2021-08-20T19:47:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T14:54:07.000Z (6 months ago)
- Last Synced: 2024-05-19T07:10:14.319Z (6 months ago)
- Topics: editor-plugin, lsp-server, typescript-plugin, vscode
- Language: TypeScript
- Homepage:
- Size: 3.61 MB
- Stars: 226
- Watchers: 12
- Forks: 42
- Open Issues: 42
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Astro Language Tools
This repository contains all the editor tooling required for the [Astro](https://astro.build/) language (`.astro` files).
Notably, it contains an implementation of the [Language Server Protocol (LSP)](https://microsoft.github.io/language-server-protocol/) which as of now is used for the [official VSCode Extension](https://marketplace.visualstudio.com/items?itemName=astro-build.astro-vscode) but could also be used to power a plugin for your favorite IDE in the future.
## Packages
This repository is a monorepo managed through [Turbo](https://turborepo.org/), which means that multiple packages are in this same repo (`packages` folder), here's a list:
### [`@astrojs/language-server`](packages/language-server)
The Astro language server, powered by [Volar](https://volarjs.dev/).
### [`astro-vscode`](packages/vscode)
The official VS Code extension for Astro. This enables all of the editing features you depend on in VSCode for `.astro` files
### [`@astrojs/ts-plugin`](packages/ts-plugin)
TypeScript plugin to add support for `.astro` imports in `.ts` files with proper typing
### Features provided
These packages together power editing functionality such as:
- [Go to Definition](https://code.visualstudio.com/docs/editor/editingevolved#_go-to-definition)
- Code hover hints
- Code completion
- Function signatures
- Syntax highlighting
- Code folding
- EmmetFor a full list of features, see [the VS Code's extension README](./packages/vscode/README.md#features).
## Contributing
Pull requests of any size and any skill level are welcome, no contribution is too small. Changes to the Astro Language Tools are subject to [Astro Governance](https://github.com/withastro/.github/blob/main/GOVERNANCE.md) and should adhere to the [Astro Style Guide](https://github.com/withastro/astro/blob/main/STYLE_GUIDE.md)
See [CONTRIBUTING.md](./CONTRIBUTING.md) for instructions on how to setup your development environment
## Sponsors
Astro is generously supported by Netlify, Storyblok, and several other amazing organizations.
[❤️ Sponsor Astro! ❤️](https://github.com/withastro/.github/blob/main/FUNDING.md)