A language server for JavaScript and TypeScript implementing the Language Server Protocol (LSP) using TypeScript's LanguageService. Version 2.11.3 is the latest stable release, with active maintenance by Sourcegraph. It provides features like hover, goto definition, find references, rename, completion, diagnostics, and quick fixes. Key differentiators include support for LSP extensions (files, symbol descriptors, workspace references), optional tracing via OpenTracing/Jaeger, and cluster mode for concurrent workers. It can be used in editors like VS Code, NeoVim, Sublime Text, and Eclipse Che. Releases follow semantic-release and use Prettier for code style.
npm install javascript-typescript-langserverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to instantiate and start the language server with a standard LSP connection over STDIO.
Use package '@sourcegraph/langserver' for latest features; for v2 use 'javascript-typescript-langserver'.
Use Node.js >=12 for TypeScript 4+ support.
Update client to use standard LSP requests like textDocument/references instead of xworkspace/references.
npm install typescript
Use import { createConnection } from 'vscode-languageserver/node' (for Node.js)No dependency data recorded yet.