typescript-language-server 4.3.4 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +41 -6
- package/lib/cli.mjs +12249 -12405
- package/lib/cli.mjs.map +1 -1
- package/package.json +29 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## [4.4.1](https://github.com/typescript-language-server/typescript-language-server/compare/v4.4.0...v4.4.1) (2025-09-12)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* align completions code with upstream ([#992](https://github.com/typescript-language-server/typescript-language-server/issues/992)) ([f0eb0f5](https://github.com/typescript-language-server/typescript-language-server/commit/f0eb0f5abb981cbf496d5fc9e2b2e49150437c12))
|
|
10
|
+
* don't filter out 'warning' TS completion kinds ([ab388a0](https://github.com/typescript-language-server/typescript-language-server/commit/ab388a010cbe8353af6c17964e9e2567fa73cce0))
|
|
11
|
+
|
|
12
|
+
## [4.4.0](https://github.com/typescript-language-server/typescript-language-server/compare/v4.3.4...v4.4.0) (2025-08-05)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* add support for typescript.tsserverRequest command ([#967](https://github.com/typescript-language-server/typescript-language-server/issues/967)) ([f09e87a](https://github.com/typescript-language-server/typescript-language-server/commit/f09e87a8d7bca95db3487d115c869612463796dc)), closes [#959](https://github.com/typescript-language-server/typescript-language-server/issues/959)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **deps:** update devdependency typescript to ^5.9.2 ([#882](https://github.com/typescript-language-server/typescript-language-server/issues/882)) ([93cc29d](https://github.com/typescript-language-server/typescript-language-server/commit/93cc29d247441fdb0b86b6bf35aaf22657983a74))
|
|
23
|
+
|
|
4
24
|
## [4.3.4](https://github.com/typescript-language-server/typescript-language-server/compare/v4.3.3...v4.3.4) (2025-02-26)
|
|
5
25
|
|
|
6
26
|
|
package/README.md
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
# TypeScript Language Server
|
|
6
6
|
|
|
7
|
-
[Language Server Protocol](https://github.com/Microsoft/language-server-protocol) implementation for TypeScript wrapping `tsserver`.
|
|
8
|
-
|
|
9
|
-
Originally based on concepts and ideas from https://github.com/prabirshrestha/typescript-language-server and maintained by [TypeFox](https://typefox.io). The core logic for interacting with `tsserver` is nowadays mostly based on the code of the `TypeScript Language Features` VSCode bundled extension maintained in https://github.com/microsoft/vscode.
|
|
10
|
-
|
|
11
|
-
Maintained by a [community of contributors](https://github.com/typescript-language-server/typescript-language-server/graphs/contributors) like you.
|
|
12
|
-
|
|
13
7
|
<!-- MarkdownTOC -->
|
|
14
8
|
|
|
9
|
+
- [What is it, exactly?](#what-is-it-exactly)
|
|
15
10
|
- [Installing](#installing)
|
|
16
11
|
- [Running the language server](#running-the-language-server)
|
|
17
12
|
- [CLI Options](#cli-options)
|
|
@@ -25,6 +20,7 @@ Maintained by a [community of contributors](https://github.com/typescript-langua
|
|
|
25
20
|
- [Apply Refactoring](#apply-refactoring)
|
|
26
21
|
- [Organize Imports](#organize-imports)
|
|
27
22
|
- [Rename File](#rename-file)
|
|
23
|
+
- [Send Tsserver Command](#send-tsserver-command)
|
|
28
24
|
- [Configure plugin](#configure-plugin)
|
|
29
25
|
- [Code Lenses \(`textDocument/codeLens`\)](#code-lenses-textdocumentcodelens)
|
|
30
26
|
- [Inlay hints \(`textDocument/inlayHint`\)](#inlay-hints-textdocumentinlayhint)
|
|
@@ -37,6 +33,16 @@ Maintained by a [community of contributors](https://github.com/typescript-langua
|
|
|
37
33
|
|
|
38
34
|
<!-- /MarkdownTOC -->
|
|
39
35
|
|
|
36
|
+
## What is it, exactly?
|
|
37
|
+
|
|
38
|
+
The [TypeScript](https://github.com/microsoft/TypeScript) project/package includes a `tsserver` component which provides a custom API that can be used for gathering various intelligence about a typescript/javascript project. The [VSCode](https://github.com/microsoft/vscode) team has built a project called `Typescript Language Features` (and bundled it as an internal extension in VSCode) that provides code intelligence for your javascript and typescript projects by utilizing that `tsserver` API. Since that extension doesn't use the standardized [Language Server Protocol](https://microsoft.github.io/language-server-protocol/) to communicate with the editor, other editors that implement LSP can't directly utilize it. Here is where the `TypeScript Language Server` project comes in with the aim to provide a thin LSP interface on top of that extension's code base for the benefit of all other editors that implement the LSP protocol.
|
|
39
|
+
|
|
40
|
+
Originally based on concepts and ideas from https://github.com/prabirshrestha/typescript-language-server and maintained by [TypeFox](https://typefox.io). Currently maintained by a [community of contributors](https://github.com/typescript-language-server/typescript-language-server/graphs/contributors) like you.
|
|
41
|
+
|
|
42
|
+
This project is not directly associated with Microsoft and is not used in their [VSCode](https://github.com/microsoft/vscode) editor. If you have an issue with VSCode functionality, report it in their repository instead.
|
|
43
|
+
|
|
44
|
+
Currently Microsoft is working on [TypeScript 7](https://github.com/microsoft/typescript-go) written natively in the go language that will include the LSP implementation and will hopefully supersede this project.
|
|
45
|
+
|
|
40
46
|
## Installing
|
|
41
47
|
|
|
42
48
|
```sh
|
|
@@ -200,6 +206,35 @@ Most of the time, you'll execute commands with arguments retrieved from another
|
|
|
200
206
|
void
|
|
201
207
|
```
|
|
202
208
|
|
|
209
|
+
#### Send Tsserver Command
|
|
210
|
+
|
|
211
|
+
- Request:
|
|
212
|
+
```ts
|
|
213
|
+
{
|
|
214
|
+
command: `typescript.tsserverRequest`
|
|
215
|
+
arguments: [
|
|
216
|
+
string, // command
|
|
217
|
+
any, // command arguments in a format that the command expects
|
|
218
|
+
ExecuteInfo, // configuration object used for the tsserver request (see below)
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
```
|
|
222
|
+
- Response:
|
|
223
|
+
```ts
|
|
224
|
+
any
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
The `ExecuteInfo` object is defined as follows:
|
|
228
|
+
|
|
229
|
+
```ts
|
|
230
|
+
type ExecuteInfo = {
|
|
231
|
+
executionTarget?: number; // 0 - semantic server, 1 - syntax server; default: 0
|
|
232
|
+
expectsResult?: boolean; // default: true
|
|
233
|
+
isAsync?: boolean; // default: false
|
|
234
|
+
lowPriority?: boolean; // default: true
|
|
235
|
+
};
|
|
236
|
+
```
|
|
237
|
+
|
|
203
238
|
#### Configure plugin
|
|
204
239
|
|
|
205
240
|
- Request:
|