Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prabirshrestha/typescript-language-server
Language Server Protocol implementation for Typescript via tsserver
https://github.com/prabirshrestha/typescript-language-server
language-server language-server-protocol tsserver typescript
Last synced: 2 months ago
JSON representation
Language Server Protocol implementation for Typescript via tsserver
- Host: GitHub
- URL: https://github.com/prabirshrestha/typescript-language-server
- Owner: prabirshrestha
- Created: 2017-08-11T05:32:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:36:51.000Z (about 1 year ago)
- Last Synced: 2024-10-06T15:01:59.849Z (3 months ago)
- Topics: language-server, language-server-protocol, tsserver, typescript
- Language: TypeScript
- Homepage:
- Size: 29.3 KB
- Stars: 24
- Watchers: 6
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# typescript-language-server
[Language Server Protocol](https://github.com/Microsoft/language-server-protocol) implementation for Typescript via tsserver.cmd**:warning: Deprecated in favor of https://github.com/theia-ide/typescript-language-server :warning:**
# Installing
```sh
npm install -g typescript-language-server
```# Running the language server
```
typescript-language-server --stdio
```**Note:** `typescript-language-server` requires `tsserver` to be in path. You can install using `npm install -g typescript`.
If you would like to use a different `tsserver` specify the absolute path using `--tserver-path`. Make sure to append `.cmd` if windows.## Options
```
$ typescript-language-server --helpUsage: typescript-language-server [options]
Options:
-V, --version output the version number
--stdio use stdio
--node-ipc use node-ipc
--socket use socket. example: --socket=5000
--tsserver-path absolute path to tsserver. example: --tsserver-path=c:\tsc\tsserver
-h, --help output usage information
```# Supported Protocol features
* textDocument/completion
* textDocument/definition
* textDocument/didChange
* textDocument/didClose
* textDocument/didOpen
* textDocument/didSave
* textDocument/documentSymbol
* textDocument/hover
* textDocument/rename
* textDocument/references
* workspace/symbol# Development
### Build
```sh
npm install
npm run build
```### Watch
```sh
npm install
npm run watch
```