TypeScript Language Server

February 6, 2025 ยท View on GitHub

You can use the TypeScript language server to benefit from TypeScript, React and JavaScript support:

TypeScript demo

Install the language server

npm install -g typescript-language-server typescript

It will install:

  • TypeScript language server. This project delegates the LSP operations (completion, diagnostics, etc) to the tsserver from TypeScript which doesn't support LSP.
  • TypeScript which hosts the tsserver.
  • As the command will add typescript-language-server in your OS PATH, you will have to close and reopen your IntelliJ to update this PATH.

After that you can create the TypeScript Language Server with the language server template:

TypeScript server dialog

Debugging

If you need to Run/Debug JavaScript/TypeScript program, you can configure the VSCode JS Debug DAP server.

Debugging / Threads