typescript-language-server 4.3.3 → 4.4.0
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 +19 -0
- package/README.md +31 -1
- package/lib/cli.mjs +13089 -13239
- package/lib/cli.mjs.map +1 -1
- package/package.json +29 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## [4.4.0](https://github.com/typescript-language-server/typescript-language-server/compare/v4.3.4...v4.4.0) (2025-08-05)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* 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)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **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))
|
|
15
|
+
|
|
16
|
+
## [4.3.4](https://github.com/typescript-language-server/typescript-language-server/compare/v4.3.3...v4.3.4) (2025-02-26)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **previewer:** mark `[@example](https://github.com/example)` and `[@default](https://github.com/default)` code blocks as TS ([#918](https://github.com/typescript-language-server/typescript-language-server/issues/918)) ([184c60d](https://github.com/typescript-language-server/typescript-language-server/commit/184c60de3308621380469d6632bdff2e10f672fd))
|
|
22
|
+
|
|
4
23
|
## [4.3.3](https://github.com/typescript-language-server/typescript-language-server/compare/v4.3.2...v4.3.3) (2024-02-09)
|
|
5
24
|
|
|
6
25
|
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
[Language Server Protocol](https://github.com/Microsoft/language-server-protocol) implementation for TypeScript wrapping `tsserver`.
|
|
8
8
|
|
|
9
|
-
|
|
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
10
|
|
|
11
11
|
Maintained by a [community of contributors](https://github.com/typescript-language-server/typescript-language-server/graphs/contributors) like you.
|
|
12
12
|
|
|
@@ -25,6 +25,7 @@ Maintained by a [community of contributors](https://github.com/typescript-langua
|
|
|
25
25
|
- [Apply Refactoring](#apply-refactoring)
|
|
26
26
|
- [Organize Imports](#organize-imports)
|
|
27
27
|
- [Rename File](#rename-file)
|
|
28
|
+
- [Send Tsserver Command](#send-tsserver-command)
|
|
28
29
|
- [Configure plugin](#configure-plugin)
|
|
29
30
|
- [Code Lenses \(`textDocument/codeLens`\)](#code-lenses-textdocumentcodelens)
|
|
30
31
|
- [Inlay hints \(`textDocument/inlayHint`\)](#inlay-hints-textdocumentinlayhint)
|
|
@@ -200,6 +201,35 @@ Most of the time, you'll execute commands with arguments retrieved from another
|
|
|
200
201
|
void
|
|
201
202
|
```
|
|
202
203
|
|
|
204
|
+
#### Send Tsserver Command
|
|
205
|
+
|
|
206
|
+
- Request:
|
|
207
|
+
```ts
|
|
208
|
+
{
|
|
209
|
+
command: `typescript.tsserverRequest`
|
|
210
|
+
arguments: [
|
|
211
|
+
string, // command
|
|
212
|
+
any, // command arguments in a format that the command expects
|
|
213
|
+
ExecuteInfo, // configuration object used for the tsserver request (see below)
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
```
|
|
217
|
+
- Response:
|
|
218
|
+
```ts
|
|
219
|
+
any
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
The `ExecuteInfo` object is defined as follows:
|
|
223
|
+
|
|
224
|
+
```ts
|
|
225
|
+
type ExecuteInfo = {
|
|
226
|
+
executionTarget?: number; // 0 - semantic server, 1 - syntax server; default: 0
|
|
227
|
+
expectsResult?: boolean; // default: true
|
|
228
|
+
isAsync?: boolean; // default: false
|
|
229
|
+
lowPriority?: boolean; // default: true
|
|
230
|
+
};
|
|
231
|
+
```
|
|
232
|
+
|
|
203
233
|
#### Configure plugin
|
|
204
234
|
|
|
205
235
|
- Request:
|