Astro

Languageby Tori @gettoriApache-2.0Bundled
Runs your project’s code

Astro loads code from the project it opens, such as its dependencies or its own configuration. Tori asks before starting it in each project and remembers your answer for that project.

Verified against
@astrojs/language-server 2.17.2Measured Oct 9, 2026
Platforms
macOS, Linux, Windows
Install
Tori installs it from npm@astrojs/language-server@2.17.2
Needs Tori
26.1009.0 or newer
Schema
Version 1
Id
astro
Source file
lsp/astro.toml ↗gettori/packs on GitHub

Add it in Tori

  1. Open Settings with the gear in the title bar.
  2. Go to LSP.
  3. Astro is already there: it ships inside Tori. When the catalog has a newer version, Add a language lists it with Update.

Adding writes one file and runs nothing. Installing @astrojs/language-server from npm is a separate click on the same row.

Use it without the catalog

Download the file and drop it in the folder below. Tori loads it the next time it starts.

Download file astro.toml
~/.config/tori/packs/lsp/

The file

astro.tomlRead only
1# Astro via @astrojs/language-server. See LSP-SERVERS.md.23schema_version = 14id = "astro"5label = "Astro"6description = "Astro components, through the Astro language server"7license = "Apache-2.0"8contributor = { name = "Tori", github = "gettori" }9verified_against = "@astrojs/language-server 2.17.2"10verified_on = "2026-10-09"11root_markers = ["package.json", ".git"]1213# Loads the project's own `astro` package for its types, and runs the project's14# TypeScript when there is one.15runs_project_code = true1617[languages]18astro = "astro"1920[launch]21kind = "managed"22runtime = "node"23program = "astro-ls"24args = ["--stdio"]2526[install]27kind = "npm"28package = "@astrojs/language-server"29version = "2.17.2"3031# The server refuses `initialize` without this: it embeds a TypeScript service32# rather than talking to tsserver, so it has to be told which `typescript/lib`33# to load. `${tsdk}` is the project's own, else Tori's bundled copy.34[initialization_options.typescript]35tsdk = "${tsdk}"