Typescript Language Server

Tips and information on how to install and use language servers with the editor.
Post Reply
User avatar
Rickard Johansson
Site Admin
Posts: 6114
Joined: 19 Jul 2006 14:29

Typescript Language Server

Post by Rickard Johansson »

Typescript language server (Typescript/JavaScript)
Language Server Protocol implementation for TypeScript wrapping tsserver.

Install
* Install Nodejs for Windows https://nodejs.org/en/download/
* Install Typescript

Code: Select all

  From command prompt run
    >npm install -g typescript
* Install typescript language server

Code: Select all

  From command prompt run
    >npm install -g typescript-language-server
Add the server in project/sites settings

Server name
Typescript language server

Command
typescript-language-server.cmd

Command line arguments
--stdio --tsserver-path=tsserver.cmd

Initial folder
<AppData>\Roaming\npm

File extension and language id
.ts=typescript
.tsx=typescript
.js=javascript
.jsx=javascript

Communication channel
* Command line (stdio)

Source folders
<Path to the ts or js files in your project or site>

Initialize options
{}

To use socket communication you can replace --stdio with --socket=5000 and set the appropriate settings.

User avatar
Rickard Johansson
Site Admin
Posts: 6114
Joined: 19 Jul 2006 14:29

Re: Typescript Language Server

Post by Rickard Johansson »

Updated the information above.

Post Reply