typescript-lsp
v0.0.7
Published
Language Server Protocol (LSP) implementation for TypeScript using tsserver
Downloads
739
Readme
TypeScript LSP
Language Server Protocol implementation for TypeScript wrapping tsserver.
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
npm install -g typescript-lspRunning the language server
typescript-lsp --stdioOptions
$ 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 informationDevelopment
Build
yarn install
yarn build
yarn testWatch
yarn
yarn watch
