Skip to content

withastro/language-tools

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
94bc851

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
February 15, 2023 14:46
February 15, 2023 14:46
September 14, 2022 12:13
March 8, 2022 15:52
October 4, 2022 14:10
February 15, 2023 14:46
September 13, 2022 17:56
August 25, 2021 09:36

Astro Language Tools

This repository contains all the editor tooling required for the Astro language (.astro files).

Notably, it contains an implementation of the Language Server Protocol (LSP) which as of now is used for the official VSCode Extension 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, which means that multiple packages are in this same repo (packages folder), here's a list:

@astrojs/language-server

The Astro language server, its structure is inspired by the Svelte Language Server.

astro-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

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
  • Code hover hints
  • Code completion
  • Function signatures
  • Syntax highlighting
  • Code folding
  • Emmet

For a full list of features, see the VS Code's extension README.

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 and should adhere to the Astro Style Guide

See CONTRIBUTING.md for instructions on how to setup your development environnement

Sponsors

Astro is generously supported by Netlify, Storyblok, and several other amazing organizations.

❤️ Sponsor Astro! ❤️

sponsors