Skip to content

Language Server Protocol implementation for Typescript via tsserver

Notifications You must be signed in to change notification settings

prabirshrestha/typescript-language-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typescript-language-server

Language Server Protocol implementation for Typescript via tsserver.cmd

⚠️ Deprecated in favor of https://github.com/theia-ide/typescript-language-server ⚠️

Installing

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 --help

  Usage: typescript-language-server [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=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

npm install
npm run build

Watch

npm install
npm run watch

About

Language Server Protocol implementation for Typescript via tsserver

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published