Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.66 KB

typescript-language-server.md

File metadata and controls

30 lines (18 loc) · 1.66 KB

TypeScript Language Server

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