Skip to content

JavaScript/TypeScript (RECOMMENDED)#

Server#

For more information about the LSP server, check typescript-language-server (formerly theia-ide / TypeFox).

Installation#

This Server supports automatic install. Install this language server with M-xlsp-install-serverRETts-lsRET.

npm i -g typescript-language-server; npm i -g typescript

Debugger: Yes (Firefox/Chrome)#

Available configurations#

lsp-clients-typescript-init-opts#

Type: plist

Default: nil

Configuration options provided to tsserver. See the UserPreferences interface at https://github.com/microsoft/TypeScript/blob/main/lib/protocol.d.ts for the list of options available in the latest version of TypeScript.


lsp-clients-typescript-log-verbosity#

Type: string

Default: info

The server log verbosity.


lsp-clients-typescript-plugins#

Type: (restricted-sexp :tag Vector :match-alternatives (lambda (xs) (and (vectorp xs) (seq-every-p (-lambda ((&plist :name :location)) (and name location)) xs))))

Default: []

The list of plugins to load. It should be a vector of plist with keys :location and :name where :name is the name of the package and :location is the directory containing the package. Example: (vector (list :name "@vsintellicode/typescript-intellicode-plugin" :location ".vscode/extensions/visualstudioexptteam. vscodeintellicode-1.1.9/"))


lsp-clients-typescript-server-args#

Type: (repeat string)

Default: (--stdio)

Extra arguments for the typescript-language-server language server.


lsp-clients-typescript-tls-path#

Type: string

Default: typescript-language-server

Path to the typescript-language-server binary.



Last update: October 13, 2021