typescript-language-server 3.0.3 → 3.2.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 +25 -0
- package/README.md +13 -1
- package/lib/cli.mjs +1 -1
- package/lib/cli.mjs.map +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## [3.2.0](https://github.com/typescript-language-server/typescript-language-server/compare/v3.1.0...v3.2.0) (2023-02-14)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* `source.removeUnusedImports.ts` and `source.sortImports.ts` actions ([#681](https://github.com/typescript-language-server/typescript-language-server/issues/681)) ([a43b2df](https://github.com/typescript-language-server/typescript-language-server/commit/a43b2df471572ca2e25b12899f65fca77853af35))
|
|
10
|
+
* provide filterText property in completions ([#678](https://github.com/typescript-language-server/typescript-language-server/issues/678)) ([af44f8b](https://github.com/typescript-language-server/typescript-language-server/commit/af44f8b1b5a252ca9ba019691ad81dc2e5006468))
|
|
11
|
+
* support `workspace/willRenameFiles` request ([#685](https://github.com/typescript-language-server/typescript-language-server/issues/685)) ([c3f3529](https://github.com/typescript-language-server/typescript-language-server/commit/c3f3529be45a1630fe7903a5af9e732855f2c664))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **completions:** don't set `filterText` after all ([#686](https://github.com/typescript-language-server/typescript-language-server/issues/686)) ([4c5d295](https://github.com/typescript-language-server/typescript-language-server/commit/4c5d295d4f71f6b5d8f2c58e908d5cc79cb9e3d2))
|
|
17
|
+
* **completions:** don't set commitCharacters unless client supports those ([#684](https://github.com/typescript-language-server/typescript-language-server/issues/684)) ([af10a97](https://github.com/typescript-language-server/typescript-language-server/commit/af10a977f38626797dbadca935c71f92556fdb39))
|
|
18
|
+
* **deps:** update devdependency typescript to ^4.9.5 ([#677](https://github.com/typescript-language-server/typescript-language-server/issues/677)) ([916c326](https://github.com/typescript-language-server/typescript-language-server/commit/916c326d576b9f13a05563495dffa27b4d02ee6e))
|
|
19
|
+
* line offset off by one when at the last line ([#683](https://github.com/typescript-language-server/typescript-language-server/issues/683)) ([0db9a5f](https://github.com/typescript-language-server/typescript-language-server/commit/0db9a5faa4bc03560506ffd030e795a35e45e3f8))
|
|
20
|
+
|
|
21
|
+
## [3.1.0](https://github.com/typescript-language-server/typescript-language-server/compare/v3.0.3...v3.1.0) (2023-01-30)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* send `$/typescriptVersion` notification with TypeScript version ([#674](https://github.com/typescript-language-server/typescript-language-server/issues/674)) ([b081112](https://github.com/typescript-language-server/typescript-language-server/commit/b081112f12a35fa70aae3a134191dea025de64da))
|
|
27
|
+
* support for canceling LSP requests ([#672](https://github.com/typescript-language-server/typescript-language-server/issues/672)) ([1daf209](https://github.com/typescript-language-server/typescript-language-server/commit/1daf209121fc20bbc0a64ec0491cd40582cb9a4b))
|
|
28
|
+
|
|
4
29
|
## [3.0.3](https://github.com/typescript-language-server/typescript-language-server/compare/v3.0.2...v3.0.3) (2023-01-23)
|
|
5
30
|
|
|
6
31
|
|
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ Maintained by a [community of contributors](https://github.com/typescript-langua
|
|
|
28
28
|
- [Rename File](#rename-file)
|
|
29
29
|
- [Configure plugin](#configure-plugin)
|
|
30
30
|
- [Inlay hints \(`textDocument/inlayHint`\)](#inlay-hints-textdocumentinlayhint)
|
|
31
|
+
- [TypeScript Version Notification](#typescript-version-notification)
|
|
31
32
|
- [Supported Protocol features](#supported-protocol-features)
|
|
32
33
|
- [Development](#development)
|
|
33
34
|
- [Build](#build)
|
|
@@ -343,9 +344,11 @@ implicitProjectConfiguration.target: string;
|
|
|
343
344
|
|
|
344
345
|
Server announces support for the following code action kinds:
|
|
345
346
|
|
|
346
|
-
- `source.addMissingImports.ts` - adds imports for used but not imported symbols
|
|
347
347
|
- `source.fixAll.ts` - despite the name, fixes a couple of specific issues: unreachable code, await in non-async functions, incorrectly implemented interface
|
|
348
348
|
- `source.removeUnused.ts` - removes declared but unused variables
|
|
349
|
+
- `source.addMissingImports.ts` - adds imports for used but not imported symbols
|
|
350
|
+
- `source.removeUnusedImports.ts` - removes unused imports
|
|
351
|
+
- `source.sortImports.ts` - sorts imports
|
|
349
352
|
- `source.organizeImports.ts` - organizes and removes unused imports
|
|
350
353
|
|
|
351
354
|
This allows editors that support running code actions on save to automatically run fixes associated with those kinds.
|
|
@@ -499,6 +502,15 @@ export interface InlayHintsOptions extends UserPreferences {
|
|
|
499
502
|
}
|
|
500
503
|
```
|
|
501
504
|
|
|
505
|
+
## TypeScript Version Notification
|
|
506
|
+
|
|
507
|
+
Right after initializing, the server sends a custom `$/typescriptVersion` notification that carries information about the version of TypeScript that is utilized by the server. The editor can then display that information in the UI.
|
|
508
|
+
|
|
509
|
+
The `$/typescriptVersion` notification params include two properties:
|
|
510
|
+
|
|
511
|
+
- `version` - a semantic version (for example `4.8.4`)
|
|
512
|
+
- `source` - a string specifying whether used TypeScript version comes from the local workspace (`workspace`), is explicitly specified through a `initializationOptions.tsserver.path` setting (`user-setting`) or was bundled with the server (`bundled`)
|
|
513
|
+
|
|
502
514
|
## Supported Protocol features
|
|
503
515
|
|
|
504
516
|
- [x] textDocument/codeAction
|