typescript-language-server 3.1.0 → 3.3.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 +29 -0
- package/README.md +20 -7
- package/lib/cli.mjs +1 -1
- package/lib/cli.mjs.map +1 -1
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## [3.3.0](https://github.com/typescript-language-server/typescript-language-server/compare/v3.2.0...v3.3.0) (2023-02-20)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* start separate tsServer instance for semantic requests ([#688](https://github.com/typescript-language-server/typescript-language-server/issues/688)) ([fa65b84](https://github.com/typescript-language-server/typescript-language-server/commit/fa65b847f4a87672cc28302f38fd86e8f56d6112))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **completions:** include `filterText` property by default ([#693](https://github.com/typescript-language-server/typescript-language-server/issues/693)) ([c07426a](https://github.com/typescript-language-server/typescript-language-server/commit/c07426adc8b079273c267e18d11993d53d482886))
|
|
15
|
+
|
|
16
|
+
## [3.2.0](https://github.com/typescript-language-server/typescript-language-server/compare/v3.1.0...v3.2.0) (2023-02-14)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* `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))
|
|
22
|
+
* 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))
|
|
23
|
+
* 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))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* **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))
|
|
29
|
+
* **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))
|
|
30
|
+
* **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))
|
|
31
|
+
* 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))
|
|
32
|
+
|
|
4
33
|
## [3.1.0](https://github.com/typescript-language-server/typescript-language-server/compare/v3.0.3...v3.1.0) (2023-01-30)
|
|
5
34
|
|
|
6
35
|
|
package/README.md
CHANGED
|
@@ -74,16 +74,17 @@ typescript-language-server --stdio
|
|
|
74
74
|
|
|
75
75
|
The language server accepts various settings through the `initializationOptions` object passed through the `initialize` request. Refer to your LSP client's documentation on how to set these. Here is the list of supported options:
|
|
76
76
|
|
|
77
|
-
| Setting | Type | Description
|
|
78
|
-
|
|
79
|
-
| hostInfo | string | Information about the host, for example `"Emacs 24.4"` or `"Sublime Text v3075"`. **Default**: `undefined`
|
|
77
|
+
| Setting | Type | Description |
|
|
78
|
+
|:------------------|:---------|:--------------------------------------------------------------------------------------|
|
|
79
|
+
| hostInfo | string | Information about the host, for example `"Emacs 24.4"` or `"Sublime Text v3075"`. **Default**: `undefined` |
|
|
80
|
+
| completionDisableFilterText | boolean | Don't set `filterText` property on completion items. **Default**: `false` |
|
|
80
81
|
| disableAutomaticTypingAcquisition | boolean | Disables tsserver from automatically fetching missing type definitions (`@types` packages) for external modules. |
|
|
81
82
|
| maxTsServerMemory | number | The maximum size of the V8's old memory section in megabytes (for example `4096` means 4GB). The default value is dynamically configured by Node so can differ per system. Increase for very big projects that exceed allowed memory usage. **Default**: `undefined` |
|
|
82
83
|
| npmLocation | string | Specifies the path to the NPM executable used for Automatic Type Acquisition. |
|
|
83
84
|
| locale | string | The locale to use to show error messages. |
|
|
84
|
-
| plugins | object[] | An array of `{ name: string, location: string }` objects for registering a Typescript plugins. **Default**: []
|
|
85
|
-
| preferences | object | Preferences passed to the Typescript (`tsserver`) process. See below for more
|
|
86
|
-
| tsserver | object | Options related to the `tsserver` process. See below for more
|
|
85
|
+
| plugins | object[] | An array of `{ name: string, location: string }` objects for registering a Typescript plugins. **Default**: [] |
|
|
86
|
+
| preferences | object | Preferences passed to the Typescript (`tsserver`) process. See below for more |
|
|
87
|
+
| tsserver | object | Options related to the `tsserver` process. See below for more |
|
|
87
88
|
|
|
88
89
|
The `tsserver` setting specifies additional options related to the internal `tsserver` process, like tracing and logging.
|
|
89
90
|
|
|
@@ -118,6 +119,16 @@ interface TsserverOptions {
|
|
|
118
119
|
* @default 'off'
|
|
119
120
|
*/
|
|
120
121
|
trace?: 'off' | 'messages' | 'verbose';
|
|
122
|
+
/**
|
|
123
|
+
* Whether a dedicated server is launched to more quickly handle syntax related operations, such as computing diagnostics or code folding.
|
|
124
|
+
*
|
|
125
|
+
* Allowed values:
|
|
126
|
+
* - auto: Spawn both a full server and a lighter weight server dedicated to syntax operations. The syntax server is used to speed up syntax operations and provide IntelliSense while projects are loading.
|
|
127
|
+
* - never: Don't use a dedicated syntax server. Use a single server to handle all IntelliSense operations.
|
|
128
|
+
*
|
|
129
|
+
* @default 'auto'
|
|
130
|
+
*/
|
|
131
|
+
useSyntaxServer?: 'auto' | 'never';
|
|
121
132
|
}
|
|
122
133
|
```
|
|
123
134
|
|
|
@@ -344,9 +355,11 @@ implicitProjectConfiguration.target: string;
|
|
|
344
355
|
|
|
345
356
|
Server announces support for the following code action kinds:
|
|
346
357
|
|
|
347
|
-
- `source.addMissingImports.ts` - adds imports for used but not imported symbols
|
|
348
358
|
- `source.fixAll.ts` - despite the name, fixes a couple of specific issues: unreachable code, await in non-async functions, incorrectly implemented interface
|
|
349
359
|
- `source.removeUnused.ts` - removes declared but unused variables
|
|
360
|
+
- `source.addMissingImports.ts` - adds imports for used but not imported symbols
|
|
361
|
+
- `source.removeUnusedImports.ts` - removes unused imports
|
|
362
|
+
- `source.sortImports.ts` - sorts imports
|
|
350
363
|
- `source.organizeImports.ts` - organizes and removes unused imports
|
|
351
364
|
|
|
352
365
|
This allows editors that support running code actions on save to automatically run fixes associated with those kinds.
|