|
96 | 96 | }, |
97 | 97 | "preferences": { |
98 | 98 | "type": "object", |
| 99 | + "additionalProperties": false, |
99 | 100 | "properties": { |
100 | 101 | "allowIncompleteCompletions": { |
101 | 102 | "type": "boolean", |
|
117 | 118 | "default": [], |
118 | 119 | "markdownDescription": "Glob patterns of files to exclude from auto imports. Requires using TypeScript 4.8 or newer in the workspace.\n\nRelative paths are resolved relative to the workspace root." |
119 | 120 | }, |
| 121 | + "autoImportSpecifierExcludeRegexes": { |
| 122 | + "type": "array", |
| 123 | + "items": { |
| 124 | + "type": "string" |
| 125 | + }, |
| 126 | + "markdownDescription": "Specify regular expressions to exclude auto imports with matching import specifiers. Examples:\n\n- `^node:`\n- `lib/internal` (slashes don't need to be escaped...)\n- `/lib\\/internal/i` (...unless including surrounding slashes for `i` or `u` flags)\n- `^lodash$` (only allow subpath imports from lodash)", |
| 127 | + "scope": "resource" |
| 128 | + }, |
120 | 129 | "includeCompletionsForModuleExports": { |
121 | 130 | "type": "boolean", |
122 | 131 | "markdownDescription": "If enabled, TypeScript will search through all external modules' exports and add them to the completions list. This affects lone identifier completions but not completions on the right hand side of `obj.`." |
|
191 | 200 | "default": "ordinal", |
192 | 201 | "markdownDescription": "Indicates whether imports should be organized via an `\"ordinal\"` (binary) comparison using the numeric value of their code points, or via `\"unicode\"` collation (via the [Unicode Collation Algorithm](https://unicode.org/reports/tr10/#Scope)) using rules associated with the locale specified in `organizeImportsCollationLocale`." |
193 | 202 | }, |
194 | | - "organizeImportsCollationLocale": { |
| 203 | + "organizeImportsLocale": { |
195 | 204 | "type": "string", |
196 | 205 | "default": "en", |
197 | 206 | "markdownDescription": "Indicates the locale to use for `\"unicode\"` collation. If not specified, the locale `\"en\"` is used as an invariant for the sake of consistent sorting. Use `\"auto\"` to use the detected UI locale.\n\nThis preference is ignored if `organizeImportsCollation` is not `\"unicode\"`." |
|
215 | 224 | "default": false, |
216 | 225 | "markdownDescription": "Indicates whether upper case or lower case should sort first. When `false`, the default order for the locale specified in `organizeImportsCollationLocale` is used.\n\nThis preference is ignored if `organizeImportsCollation` is not `\"unicode\"`. This preference is also ignored if we are using case-insensitive sorting, which occurs when `organizeImportsIgnoreCase` is `true`, or if `organizeImportsIgnoreCase` is `\"auto\"` and the auto-detected case sensitivity is determined to be case-insensitive." |
217 | 226 | }, |
| 227 | + "organizeImportsTypeOrder": { |
| 228 | + "type": "string", |
| 229 | + "markdownDescription": "Specify how type-only named imports should be sorted.", |
| 230 | + "enum": [ |
| 231 | + "auto", |
| 232 | + "last", |
| 233 | + "inline", |
| 234 | + "first" |
| 235 | + ], |
| 236 | + "default": "auto", |
| 237 | + "markdownEnumDescriptions": [ |
| 238 | + "Detect where type-only named imports should be sorted.", |
| 239 | + "Type only named imports are sorted to the end of the import list. E.g. `import { B, Z, type A, type Y } from 'module';`", |
| 240 | + "Named imports are sorted by name only. E.g. `import { type A, B, type Y, Z } from 'module';`", |
| 241 | + "Type only named imports are sorted to the beginning of the import list. E.g. `import { type A, type Y, B, Z } from 'module';`" |
| 242 | + ] |
| 243 | + }, |
| 244 | + "preferTypeOnlyAutoImports": { |
| 245 | + "type": "boolean", |
| 246 | + "default": false, |
| 247 | + "markdownDescription": "Include the `type` keyword in auto-imports whenever possible. Requires using TypeScript 5.3+ in the workspace.", |
| 248 | + }, |
218 | 249 | "providePrefixAndSuffixTextForRename": { |
219 | 250 | "type": "boolean", |
220 | 251 | }, |
|
263 | 294 | "Only insert attribute names." |
264 | 295 | ], |
265 | 296 | "markdownDescription": "Preferred style for JSX attribute completions.\n\nRequires TypeScript 4.5+." |
| 297 | + }, |
| 298 | + "maximumHoverLength": { |
| 299 | + "type": "number", |
| 300 | + "default": 500, |
| 301 | + "description": "The maximum number of characters in a hover. If the hover is longer than this, it will be truncated. Requires TypeScript 5.9+.", |
266 | 302 | } |
267 | 303 | } |
268 | 304 | }, |
|
0 commit comments