You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,16 @@ The language server accepts various settings through the `initializationOptions`
20
20
| 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`|
21
21
| npmLocation | string | Specifies the path to the NPM executable used for Automatic Type Acquisition. |
22
22
| locale | string | The locale to use to show error messages. |
23
-
| plugins | object[]| An array of `{ name: string, location: string }` objects for registering a Typescript plugins. **Default**: []|
23
+
| plugins | object[]| An array of `{ name: string, location: string, languages?: string[] }` objects for registering a Typescript plugins. **Default**: []|
24
24
| preferences | object | Preferences passed to the Typescript (`tsserver`) process. See below for more |
25
25
| tsserver | object | Options related to the `tsserver` process. See below for more |
26
26
27
+
### `plugins` option
28
+
29
+
Accepts a list of `tsserver` (typescript) plugins.
30
+
The `name` and the `location` are required. The `location` is a path to the package or a directory in which `tsserver` will try to import the plugin `name` using Node's `require` API.
31
+
The `languages` property specifies which extra language IDs the language server should accept. This is required when plugin enables support for language IDs that this server does not support by default (so other than `typescript`, `typescriptreact`, `javascript`, `javascriptreact`). It's an optional property and only affects which file types the language server allows to be opened and do not concern the `tsserver` itself.
32
+
27
33
### `tsserver` options
28
34
29
35
Specifies additional options related to the internal `tsserver` process, like tracing and logging:
0 commit comments