# typescript-lsp

> Language Server Protocol (LSP) implementation for TypeScript using tsserver

Latest version **0.0.7** (published 2017-10-01) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install typescript-lsp
pnpm add typescript-lsp
yarn add typescript-lsp
bun add typescript-lsp
```

Provides the command `typescript-lsp`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2017-10-01 |
| First published | 2017-09-29 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | TypeFox and others |
| Maintainers | svenefftinge |

## Links

- npm: https://www.npmjs.com/package/typescript-lsp
- npm.io page: https://npm.io/package/typescript-lsp

## Dependencies (3)

- [commander](https://npm.io/package/commander.md) ^2.11.0
- [vscode-uri](https://npm.io/package/vscode-uri.md) ^1.0.1
- [vscode-languageserver](https://npm.io/package/vscode-languageserver.md) ^3.4.3

## Recent versions

- 0.0.7 (latest) — 2017-10-01
- 0.0.6 — 2017-10-01
- 0.0.5 — 2017-09-30
- 0.0.4 — 2017-09-30
- 0.0.3 — 2017-09-29
- 0.0.2 — 2017-09-29
- 0.0.1 — 2017-09-29

## README

# TypeScript LSP
[Language Server Protocol](https://github.com/Microsoft/language-server-protocol) implementation for TypeScript wrapping `tsserver`.

[![https://nodei.co/npm/typescript-lsp.png?downloads=true&downloadRank=true&stars=true](https://nodei.co/npm/typescript-lsp.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/typescript-lsp)

Based on concepts and ideas from https://github.com/prabirshrestha/typescript-language-server.

# Supported Protocol features

- [x] textDocument/didChange (incremental)
- [x] textDocument/didClose
- [x] textDocument/didOpen
- [x] textDocument/didSave

- [x] textDocument/codeAction
- [x] textDocument/completion (incl. completion/resolve)
- [x] textDocument/definition
- [x] textDocument/documentHighlight
- [x] textDocument/documentSymbol
- [x] textDocument/executeCommand
- [x] textDocument/format
- [x] textDocument/hover
- [x] textDocument/rename
- [x] textDocument/references
- [x] textDocument/signatureHelp
- [x] workspace/symbol

# Installing

```sh
npm install -g typescript-lsp
```

# Running the language server

```
typescript-lsp --stdio
```

## Options

```
$ typescript-lsp --help

  Usage: typescript-lsp [options]


  Options:

    -V, --version           output the version number
    --stdio                 use stdio
    --node-ipc              use node-ipc
    --socket <port>         use socket. example: --socket=5000
    --tsserver-path <path>  absolute path to tsserver. example: --tsserver-path=/bin/tsserver
    --tsserver-logFile <logFile>     Specify a log file. example: --tsserver-logFile=logs.txt
    -h, --help              output usage information
```

# Development

### Build

```sh
yarn install
yarn build
yarn test
```

### Watch

```sh
yarn
yarn watch
```

---
_Source: https://npm.io/package/typescript-lsp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
