talira

TypeScript Language Server

Language Server Protocol wrapper around TypeScript's tsserver

open sourceApache-2.0 AND MITfree

TypeScript Language Server gives editors that speak the Language Server Protocol the same TypeScript and JavaScript code intelligence VS Code gets: a thin LSP interface over the code base of VS Code's TypeScript Language Features, which drives TypeScript's tsserver. It adds code actions on save, organise imports, rename file, go to source definition, code lenses and inlay hints. Originally maintained by TypeFox, it's now kept up by a community of contributors and isn't associated with Microsoft.

Ways to install

Problems it solves

  • get TypeScript autocomplete and go-to-definition in Neovim or Emacs like VS Code has
  • an LSP server so my editor understands my TypeScript project
  • inlay type hints and organise imports for TypeScript outside VS Code
  • plug TypeScript support into an editor that only speaks the Language Server Protocol

Features

  • LSP server for TypeScript and JavaScript over tsserver
  • code actions on save
  • organise imports, rename file and go to source definition commands
  • reference and implementation code lenses
  • inlay hints for parameters, types and return values
  • installed from npm alongside the typescript package

Limitations

  • Microsoft's native TypeScript 7 includes its own LSP implementation, which the README says will hopefully supersede this project2

Alternatives

The same job

These do what TypeScript Language Server does.

  1. Haskell Language Server The official Haskell language server (LSP) implementation
  2. PowerShell Editor Services The PowerShell language server and debug adapter for any editor
  3. Ruby LSP Shopify's open source language server for Ruby, with a VS Code extension
  4. clangd clangd understands your C++ code and adds smart features to your editor
  5. gopls The language server for Go
  6. Svelte Language Tools The Svelte language server, svelte-check and the official VS Code extension

Compare TypeScript Language Server with the top 3