-
Notifications
You must be signed in to change notification settings - Fork 8
/
configuration.schema.json
1150 lines (1150 loc) · 47.4 KB
/
configuration.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Configuration for Typescript language service",
"properties": {
"typescript.tsdk": {
"type": "string",
"markdownDescription": "Specifies the folder path to the tsserver and `lib*.d.ts` files under a TypeScript install to use for IntelliSense, for example: `./node_modules/typescript/lib`.\n\n- When specified as a user setting, the TypeScript version from `typescript.tsdk` automatically replaces the built-in TypeScript version.\n- When specified as a workspace setting, `typescript.tsdk` allows you to switch to use that workspace version of TypeScript for IntelliSense with the `TypeScript: Select TypeScript version` command.\n\nSee the [TypeScript documentation](https://code.visualstudio.com/docs/typescript/typescript-compiling#_using-newer-typescript-versions) for more detail about managing TypeScript versions."
},
"typescript.disableAutomaticTypeAcquisition": {
"type": "boolean",
"default": false,
"markdownDescription": "Disables [automatic type acquisition](https://code.visualstudio.com/docs/nodejs/working-with-javascript#_typings-and-automatic-type-acquisition). Automatic type acquisition fetches `@types` packages from npm to improve IntelliSense for external libraries."
},
"typescript.npm": {
"type": "string",
"markdownDescription": "Specifies the path to the npm executable used for [Automatic Type Acquisition](https://code.visualstudio.com/docs/nodejs/working-with-javascript#_typings-and-automatic-type-acquisition)."
},
"typescript.check.npmIsInstalled": {
"type": "boolean",
"default": true,
"markdownDescription": "Check if npm is installed for [Automatic Type Acquisition](https://code.visualstudio.com/docs/nodejs/working-with-javascript#_typings-and-automatic-type-acquisition)."
},
"javascript.referencesCodeLens.enabled": {
"type": "boolean",
"default": false,
"description": "Enable/disable references CodeLens in JavaScript files."
},
"javascript.referencesCodeLens.showOnAllFunctions": {
"type": "boolean",
"default": false,
"description": "Enable/disable references CodeLens on all functions in JavaScript files."
},
"typescript.referencesCodeLens.enabled": {
"type": "boolean",
"default": false,
"description": "Enable/disable references CodeLens in TypeScript files."
},
"typescript.referencesCodeLens.showOnAllFunctions": {
"type": "boolean",
"default": false,
"description": "Enable/disable references CodeLens on all functions in TypeScript files."
},
"typescript.implementationsCodeLens.enabled": {
"type": "boolean",
"default": false,
"description": "Enable/disable implementations CodeLens. This CodeLens shows the implementers of an interface."
},
"typescript.implementationsCodeLens.showOnInterfaceMethods": {
"type": "boolean",
"default": false,
"description": "Enable/disable implementations CodeLens on interface methods."
},
"typescript.tsserver.enableTracing": {
"type": "boolean",
"default": false,
"description": "Enables tracing TS server performance to a directory. These trace files can be used to diagnose TS Server performance issues. The log may contain file paths, source code, and other potentially sensitive information from your project."
},
"typescript.tsserver.log": {
"type": "string",
"enum": [
"off",
"terse",
"normal",
"verbose"
],
"default": "off",
"description": "Enables logging of the TS server to a file. This log can be used to diagnose TS Server issues. The log may contain file paths, source code, and other potentially sensitive information from your project."
},
"typescript.tsserver.pluginPaths": {
"type": "array",
"items": {
"type": "string",
"description": "Either an absolute or relative path. Relative path will be resolved against workspace folder(s)."
},
"default": [],
"description": "Additional paths to discover TypeScript Language Service plugins."
},
"javascript.suggest.completeFunctionCalls": {
"type": "boolean",
"default": false,
"description": "Complete functions with their parameter signature."
},
"typescript.suggest.completeFunctionCalls": {
"type": "boolean",
"default": false,
"description": "Complete functions with their parameter signature."
},
"javascript.suggest.includeAutomaticOptionalChainCompletions": {
"type": "boolean",
"default": true,
"description": "Enable/disable showing completions on potentially undefined values that insert an optional chain call. Requires strict null checks to be enabled."
},
"typescript.suggest.includeAutomaticOptionalChainCompletions": {
"type": "boolean",
"default": true,
"description": "Enable/disable showing completions on potentially undefined values that insert an optional chain call. Requires strict null checks to be enabled."
},
"typescript.inlayHints.parameterNames.enabled": {
"type": "string",
"enum": [
"none",
"literals",
"all"
],
"enumDescriptions": [
"Disable parameter name hints.",
"Enable parameter name hints only for literal arguments.",
"Enable parameter name hints for literal and non-literal arguments."
],
"default": "none",
"markdownDescription": {
"message": "Enable/disable inlay hints for parameter names:\n```typescript\n\nparseInt(/* str: */ '123', /* radix: */ 8)\n \n```",
"comment": [
"The text inside the ``` block is code and should not be localized."
]
}
},
"typescript.inlayHints.parameterNames.suppressWhenArgumentMatchesName": {
"type": "boolean",
"default": true,
"markdownDescription": "Suppress parameter name hints on arguments whose text is identical to the parameter name."
},
"typescript.inlayHints.parameterTypes.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": {
"message": "Enable/disable inlay hints for implicit parameter types:\n```typescript\n\nel.addEventListener('click', e /* :MouseEvent */ => ...)\n \n```",
"comment": [
"The text inside the ``` block is code and should not be localized."
]
}
},
"typescript.inlayHints.variableTypes.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": {
"message": "Enable/disable inlay hints for implicit variable types:\n```typescript\n\nconst foo /* :number */ = Date.now();\n \n```",
"comment": [
"The text inside the ``` block is code and should not be localized."
]
}
},
"typescript.inlayHints.variableTypes.suppressWhenTypeMatchesName": {
"type": "boolean",
"default": true,
"markdownDescription": "Suppress type hints on variables whose name is identical to the type name."
},
"typescript.inlayHints.propertyDeclarationTypes.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": {
"message": "Enable/disable inlay hints for implicit types on property declarations:\n```typescript\n\nclass Foo {\n\tprop /* :number */ = Date.now();\n}\n \n```",
"comment": [
"The text inside the ``` block is code and should not be localized."
]
}
},
"typescript.inlayHints.functionLikeReturnTypes.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": {
"message": "Enable/disable inlay hints for implicit return types on function signatures:\n```typescript\n\nfunction foo() /* :number */ {\n\treturn Date.now();\n} \n \n```",
"comment": [
"The text inside the ``` block is code and should not be localized."
]
}
},
"typescript.inlayHints.enumMemberValues.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": {
"message": "Enable/disable inlay hints for member values in enum declarations:\n```typescript\n\nenum MyValue {\n\tA /* = 0 */;\n\tB /* = 1 */;\n}\n \n```",
"comment": [
"The text inside the ``` block is code and should not be localized."
]
}
},
"javascript.inlayHints.parameterNames.enabled": {
"type": "string",
"enum": [
"none",
"literals",
"all"
],
"enumDescriptions": [
"Disable parameter name hints.",
"Enable parameter name hints only for literal arguments.",
"Enable parameter name hints for literal and non-literal arguments."
],
"default": "none",
"markdownDescription": {
"message": "Enable/disable inlay hints for parameter names:\n```typescript\n\nparseInt(/* str: */ '123', /* radix: */ 8)\n \n```",
"comment": [
"The text inside the ``` block is code and should not be localized."
]
}
},
"javascript.inlayHints.parameterNames.suppressWhenArgumentMatchesName": {
"type": "boolean",
"default": true,
"markdownDescription": "Suppress parameter name hints on arguments whose text is identical to the parameter name."
},
"javascript.inlayHints.parameterTypes.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": {
"message": "Enable/disable inlay hints for implicit parameter types:\n```typescript\n\nel.addEventListener('click', e /* :MouseEvent */ => ...)\n \n```",
"comment": [
"The text inside the ``` block is code and should not be localized."
]
}
},
"javascript.inlayHints.variableTypes.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": {
"message": "Enable/disable inlay hints for implicit variable types:\n```typescript\n\nconst foo /* :number */ = Date.now();\n \n```",
"comment": [
"The text inside the ``` block is code and should not be localized."
]
}
},
"javascript.inlayHints.variableTypes.suppressWhenTypeMatchesName": {
"type": "boolean",
"default": true,
"markdownDescription": "Suppress type hints on variables whose name is identical to the type name."
},
"javascript.inlayHints.propertyDeclarationTypes.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": {
"message": "Enable/disable inlay hints for implicit types on property declarations:\n```typescript\n\nclass Foo {\n\tprop /* :number */ = Date.now();\n}\n \n```",
"comment": [
"The text inside the ``` block is code and should not be localized."
]
}
},
"javascript.inlayHints.functionLikeReturnTypes.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": {
"message": "Enable/disable inlay hints for implicit return types on function signatures:\n```typescript\n\nfunction foo() /* :number */ {\n\treturn Date.now();\n} \n \n```",
"comment": [
"The text inside the ``` block is code and should not be localized."
]
}
},
"javascript.inlayHints.enumMemberValues.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": {
"message": "Enable/disable inlay hints for member values in enum declarations:\n```typescript\n\nenum MyValue {\n\tA /* = 0 */;\n\tB /* = 1 */;\n}\n \n```",
"comment": [
"The text inside the ``` block is code and should not be localized."
]
}
},
"javascript.suggest.includeCompletionsForImportStatements": {
"type": "boolean",
"default": true,
"description": "Enable/disable auto-import-style completions on partially-typed import statements."
},
"typescript.suggest.includeCompletionsForImportStatements": {
"type": "boolean",
"default": true,
"description": "Enable/disable auto-import-style completions on partially-typed import statements."
},
"typescript.reportStyleChecksAsWarnings": {
"type": "boolean",
"default": true,
"description": "Report style checks as warnings."
},
"typescript.validate.enable": {
"type": "boolean",
"default": true,
"description": "Enable/disable TypeScript validation."
},
"typescript.format.enable": {
"type": "boolean",
"default": true,
"description": "Enable/disable default TypeScript formatter."
},
"typescript.format.insertSpaceAfterCommaDelimiter": {
"type": "boolean",
"default": true,
"description": "Defines space handling after a comma delimiter."
},
"typescript.format.insertSpaceAfterConstructor": {
"type": "boolean",
"default": false,
"description": "Defines space handling after the constructor keyword."
},
"typescript.format.insertSpaceAfterSemicolonInForStatements": {
"type": "boolean",
"default": true,
"description": "Defines space handling after a semicolon in a for statement."
},
"typescript.format.insertSpaceBeforeAndAfterBinaryOperators": {
"type": "boolean",
"default": true,
"description": "Defines space handling after a binary operator."
},
"typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
"type": "boolean",
"default": true,
"description": "Defines space handling after keywords in a control flow statement."
},
"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
"type": "boolean",
"default": true,
"description": "Defines space handling after function keyword for anonymous functions."
},
"typescript.format.insertSpaceBeforeFunctionParenthesis": {
"type": "boolean",
"default": false,
"description": "Defines space handling before function argument parentheses."
},
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
"type": "boolean",
"default": false,
"description": "Defines space handling after opening and before closing non-empty parenthesis."
},
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
"type": "boolean",
"default": false,
"description": "Defines space handling after opening and before closing non-empty brackets."
},
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
"type": "boolean",
"default": true,
"description": "Defines space handling after opening and before closing non-empty braces."
},
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": {
"type": "boolean",
"default": true,
"description": "Defines space handling after opening and before closing empty braces."
},
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
"type": "boolean",
"default": false,
"description": "Defines space handling after opening and before closing template string braces."
},
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
"type": "boolean",
"default": false,
"description": "Defines space handling after opening and before closing JSX expression braces."
},
"typescript.format.insertSpaceAfterTypeAssertion": {
"type": "boolean",
"default": false,
"description": "Defines space handling after type assertions in TypeScript."
},
"typescript.format.placeOpenBraceOnNewLineForFunctions": {
"type": "boolean",
"default": false,
"description": "Defines whether an open brace is put onto a new line for functions or not."
},
"typescript.format.placeOpenBraceOnNewLineForControlBlocks": {
"type": "boolean",
"default": false,
"description": "Defines whether an open brace is put onto a new line for control blocks or not."
},
"typescript.format.semicolons": {
"type": "string",
"default": "ignore",
"description": "Defines handling of optional semicolons.",
"enum": [
"ignore",
"insert",
"remove"
],
"enumDescriptions": [
"Don't insert or remove any semicolons.",
"Insert semicolons at statement ends.",
"Remove unnecessary semicolons."
]
},
"typescript.format.indentSwitchCase": {
"type": "boolean",
"default": true,
"description": "Indent case clauses in switch statements. Requires using TypeScript 5.1+ in the workspace."
},
"javascript.validate.enable": {
"type": "boolean",
"default": true,
"description": "Enable/disable JavaScript validation."
},
"javascript.format.enable": {
"type": "boolean",
"default": true,
"description": "Enable/disable default JavaScript formatter."
},
"javascript.format.insertSpaceAfterCommaDelimiter": {
"type": "boolean",
"default": true,
"description": "Defines space handling after a comma delimiter."
},
"javascript.format.insertSpaceAfterConstructor": {
"type": "boolean",
"default": false,
"description": "Defines space handling after the constructor keyword."
},
"javascript.format.insertSpaceAfterSemicolonInForStatements": {
"type": "boolean",
"default": true,
"description": "Defines space handling after a semicolon in a for statement."
},
"javascript.format.insertSpaceBeforeAndAfterBinaryOperators": {
"type": "boolean",
"default": true,
"description": "Defines space handling after a binary operator."
},
"javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
"type": "boolean",
"default": true,
"description": "Defines space handling after keywords in a control flow statement."
},
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
"type": "boolean",
"default": true,
"description": "Defines space handling after function keyword for anonymous functions."
},
"javascript.format.insertSpaceBeforeFunctionParenthesis": {
"type": "boolean",
"default": false,
"description": "Defines space handling before function argument parentheses."
},
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
"type": "boolean",
"default": false,
"description": "Defines space handling after opening and before closing non-empty parenthesis."
},
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
"type": "boolean",
"default": false,
"description": "Defines space handling after opening and before closing non-empty brackets."
},
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
"type": "boolean",
"default": true,
"description": "Defines space handling after opening and before closing non-empty braces."
},
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": {
"type": "boolean",
"default": true,
"description": "Defines space handling after opening and before closing empty braces."
},
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
"type": "boolean",
"default": false,
"description": "Defines space handling after opening and before closing template string braces."
},
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
"type": "boolean",
"default": false,
"description": "Defines space handling after opening and before closing JSX expression braces."
},
"javascript.format.placeOpenBraceOnNewLineForFunctions": {
"type": "boolean",
"default": false,
"description": "Defines whether an open brace is put onto a new line for functions or not."
},
"javascript.format.placeOpenBraceOnNewLineForControlBlocks": {
"type": "boolean",
"default": false,
"description": "Defines whether an open brace is put onto a new line for control blocks or not."
},
"javascript.format.semicolons": {
"type": "string",
"default": "ignore",
"description": "Defines handling of optional semicolons.",
"enum": [
"ignore",
"insert",
"remove"
],
"enumDescriptions": [
"Don't insert or remove any semicolons.",
"Insert semicolons at statement ends.",
"Remove unnecessary semicolons."
]
},
"js/ts.implicitProjectConfig.module": {
"type": "string",
"markdownDescription": "Sets the module system for the program. See more: https://www.typescriptlang.org/tsconfig#module.",
"default": "ESNext",
"enum": [
"CommonJS",
"AMD",
"System",
"UMD",
"ES6",
"ES2015",
"ES2020",
"ESNext",
"None",
"ES2022",
"Node12",
"NodeNext"
]
},
"js/ts.implicitProjectConfig.target": {
"type": "string",
"default": "ES2020",
"markdownDescription": "Set target JavaScript language version for emitted JavaScript and include library declarations. See more: https://www.typescriptlang.org/tsconfig#target.",
"enum": [
"ES3",
"ES5",
"ES6",
"ES2015",
"ES2016",
"ES2017",
"ES2018",
"ES2019",
"ES2020",
"ES2021",
"ES2022",
"ESNext"
]
},
"javascript.implicitProjectConfig.checkJs": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable semantic checking of JavaScript files. Existing `jsconfig.json` or `tsconfig.json` files override this setting.",
"markdownDeprecationMessage": "This setting has been deprecated in favor of `js/ts.implicitProjectConfig.checkJs`."
},
"js/ts.implicitProjectConfig.checkJs": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable semantic checking of JavaScript files. Existing `jsconfig.json` or `tsconfig.json` files override this setting."
},
"javascript.implicitProjectConfig.experimentalDecorators": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable `experimentalDecorators` in JavaScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting.",
"markdownDeprecationMessage": "This setting has been deprecated in favor of `js/ts.implicitProjectConfig.experimentalDecorators`."
},
"js/ts.implicitProjectConfig.experimentalDecorators": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable `experimentalDecorators` in JavaScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting."
},
"js/ts.implicitProjectConfig.strictNullChecks": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable [strict null checks](https://www.typescriptlang.org/tsconfig#strictNullChecks) in JavaScript and TypeScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting."
},
"js/ts.implicitProjectConfig.strictFunctionTypes": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable [strict function types](https://www.typescriptlang.org/tsconfig#strictFunctionTypes) in JavaScript and TypeScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting."
},
"javascript.suggest.names": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable including unique names from the file in JavaScript suggestions. Note that name suggestions are always disabled in JavaScript code that is semantically checked using `@ts-check` or `checkJs`."
},
"javascript.suggest.paths": {
"type": "boolean",
"default": true,
"description": "Enable/disable suggestions for paths in import statements and require calls."
},
"typescript.suggest.paths": {
"type": "boolean",
"default": true,
"description": "Enable/disable suggestions for paths in import statements and require calls."
},
"javascript.suggest.autoImports": {
"type": "boolean",
"default": true,
"description": "Enable/disable auto import suggestions."
},
"typescript.suggest.autoImports": {
"type": "boolean",
"default": true,
"description": "Enable/disable auto import suggestions."
},
"javascript.suggest.completeJSDocs": {
"type": "boolean",
"default": true,
"description": "Enable/disable suggestion to complete JSDoc comments."
},
"typescript.suggest.completeJSDocs": {
"type": "boolean",
"default": true,
"description": "Enable/disable suggestion to complete JSDoc comments."
},
"javascript.suggest.jsdoc.generateReturns": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable generating `@returns` annotations for JSDoc templates."
},
"typescript.suggest.jsdoc.generateReturns": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable generating `@returns` annotations for JSDoc templates."
},
"typescript.locale": {
"type": "string",
"default": "auto",
"enum": [
"auto",
"de",
"es",
"en",
"fr",
"it",
"ja",
"ko",
"ru",
"zh-CN",
"zh-TW"
],
"enumDescriptions": [
"Use VS Code's configured display language",
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"markdownDescription": "Sets the locale used to report JavaScript and TypeScript errors. Defaults to use VS Code's locale."
},
"javascript.suggestionActions.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable suggestion diagnostics for JavaScript files in the editor."
},
"typescript.suggestionActions.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable suggestion diagnostics for TypeScript files in the editor."
},
"javascript.preferences.quoteStyle": {
"type": "string",
"enum": [
"auto",
"single",
"double"
],
"default": "auto",
"markdownDescription": "Preferred quote style to use for Quick Fixes.",
"markdownEnumDescriptions": [
"Infer quote type from existing code",
"Always use single quotes: `'`",
"Always use double quotes: `\"`"
]
},
"typescript.preferences.quoteStyle": {
"type": "string",
"enum": [
"auto",
"single",
"double"
],
"default": "auto",
"markdownDescription": "Preferred quote style to use for Quick Fixes.",
"markdownEnumDescriptions": [
"Infer quote type from existing code",
"Always use single quotes: `'`",
"Always use double quotes: `\"`"
]
},
"javascript.preferences.importModuleSpecifier": {
"type": "string",
"enum": [
"shortest",
"relative",
"non-relative",
"project-relative"
],
"markdownEnumDescriptions": [
"Prefers a non-relative import only if one is available that has fewer path segments than a relative import.",
"Prefers a relative path to the imported file location.",
"Prefers a non-relative import based on the `baseUrl` or `paths` configured in your `jsconfig.json` / `tsconfig.json`.",
"Prefers a non-relative import only if the relative import path would leave the package or project directory."
],
"default": "shortest",
"description": "Preferred path style for auto imports."
},
"typescript.preferences.importModuleSpecifier": {
"type": "string",
"enum": [
"shortest",
"relative",
"non-relative",
"project-relative"
],
"markdownEnumDescriptions": [
"Prefers a non-relative import only if one is available that has fewer path segments than a relative import.",
"Prefers a relative path to the imported file location.",
"Prefers a non-relative import based on the `baseUrl` or `paths` configured in your `jsconfig.json` / `tsconfig.json`.",
"Prefers a non-relative import only if the relative import path would leave the package or project directory."
],
"default": "shortest",
"description": "Preferred path style for auto imports."
},
"javascript.preferences.importModuleSpecifierEnding": {
"type": "string",
"enum": [
"auto",
"minimal",
"index",
"js"
],
"enumItemLabels": [
null,
null,
null,
".js / .ts"
],
"markdownEnumDescriptions": [
"Use project settings to select a default.",
"Shorten `./component/index.js` to `./component`.",
"Shorten `./component/index.js` to `./component/index`.",
"Do not shorten path endings; include the `.js` or `.ts` extension."
],
"default": "auto",
"description": "Preferred path ending for auto imports."
},
"typescript.preferences.importModuleSpecifierEnding": {
"type": "string",
"enum": [
"auto",
"minimal",
"index",
"js"
],
"enumItemLabels": [
null,
null,
null,
".js / .ts"
],
"markdownEnumDescriptions": [
"Use project settings to select a default.",
"Shorten `./component/index.js` to `./component`.",
"Shorten `./component/index.js` to `./component/index`.",
"Do not shorten path endings; include the `.js` or `.ts` extension."
],
"default": "auto",
"description": "Preferred path ending for auto imports."
},
"javascript.preferences.jsxAttributeCompletionStyle": {
"type": "string",
"enum": [
"auto",
"braces",
"none"
],
"markdownEnumDescriptions": [
"Insert `={}` or `=\"\"` after attribute names based on the prop type. See `javascript.preferences.quoteStyle` to control the type of quotes used for string attributes.",
"Insert `={}` after attribute names.",
"Only insert attribute names."
],
"default": "auto",
"description": "Preferred style for JSX attribute completions."
},
"typescript.preferences.jsxAttributeCompletionStyle": {
"type": "string",
"enum": [
"auto",
"braces",
"none"
],
"markdownEnumDescriptions": [
"Insert `={}` or `=\"\"` after attribute names based on the prop type. See `typescript.preferences.quoteStyle` to control the type of quotes used for string attributes.",
"Insert `={}` after attribute names.",
"Only insert attribute names."
],
"default": "auto",
"description": "Preferred style for JSX attribute completions."
},
"typescript.preferences.includePackageJsonAutoImports": {
"type": "string",
"enum": [
"auto",
"on",
"off"
],
"enumDescriptions": [
"Search dependencies based on estimated performance impact.",
"Always search dependencies.",
"Never search dependencies."
],
"default": "auto",
"markdownDescription": "Enable/disable searching `package.json` dependencies for available auto imports."
},
"typescript.preferences.autoImportFileExcludePatterns": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "Specify glob patterns of files to exclude from auto imports. Relative paths are resolved relative to the workspace root. Patterns are evaluated using tsconfig.json [`exclude`](https://www.typescriptlang.org/tsconfig#exclude) semantics."
},
"javascript.preferences.autoImportFileExcludePatterns": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "Specify glob patterns of files to exclude from auto imports. Relative paths are resolved relative to the workspace root. Patterns are evaluated using tsconfig.json [`exclude`](https://www.typescriptlang.org/tsconfig#exclude) semantics."
},
"typescript.preferences.preferTypeOnlyAutoImports": {
"type": "boolean",
"default": false,
"markdownDescription": "Include the `type` keyword in auto-imports whenever possible. Requires using TypeScript 5.3+ in the workspace."
},
"javascript.preferences.renameShorthandProperties": {
"type": "boolean",
"default": true,
"description": "Enable/disable introducing aliases for object shorthand properties during renames.",
"deprecationMessage": "The setting 'typescript.preferences.renameShorthandProperties' has been deprecated in favor of 'typescript.preferences.useAliasesForRenames'"
},
"typescript.preferences.renameShorthandProperties": {
"type": "boolean",
"default": true,
"description": "Enable/disable introducing aliases for object shorthand properties during renames.",
"deprecationMessage": "The setting 'typescript.preferences.renameShorthandProperties' has been deprecated in favor of 'typescript.preferences.useAliasesForRenames'"
},
"javascript.preferences.useAliasesForRenames": {
"type": "boolean",
"default": true,
"description": "Enable/disable introducing aliases for object shorthand properties during renames."
},
"typescript.preferences.useAliasesForRenames": {
"type": "boolean",
"default": true,
"description": "Enable/disable introducing aliases for object shorthand properties during renames."
},
"javascript.preferences.renameMatchingJsxTags": {
"type": "boolean",
"default": true,
"description": "When on a JSX tag, try to rename the matching tag instead of renaming the symbol. Requires using TypeScript 5.1+ in the workspace."
},
"typescript.preferences.renameMatchingJsxTags": {
"type": "boolean",
"default": true,
"description": "When on a JSX tag, try to rename the matching tag instead of renaming the symbol. Requires using TypeScript 5.1+ in the workspace."
},
"typescript.updateImportsOnFileMove.enabled": {
"type": "string",
"enum": [
"prompt",
"always",
"never"
],
"markdownEnumDescriptions": [
"Prompt on each rename.",
"Always update paths automatically.",
"Never rename paths and don't prompt."
],
"default": "prompt",
"description": "Enable/disable automatic updating of import paths when you rename or move a file in VS Code."
},
"javascript.updateImportsOnFileMove.enabled": {
"type": "string",
"enum": [
"prompt",
"always",
"never"
],
"markdownEnumDescriptions": [
"Prompt on each rename.",
"Always update paths automatically.",
"Never rename paths and don't prompt."
],
"default": "prompt",
"description": "Enable/disable automatic updating of import paths when you rename or move a file in VS Code."
},
"javascript.suggest.enabled": {
"type": "boolean",
"default": true,
"description": "Enabled/disable autocomplete suggestions."
},
"typescript.suggest.enabled": {
"type": "boolean",
"default": true,
"description": "Enabled/disable autocomplete suggestions."
},
"typescript.tsserver.useSeparateSyntaxServer": {
"type": "boolean",
"default": true,
"description": "Enable/disable spawning a separate TypeScript server that can more quickly respond to syntax related operations, such as calculating folding or computing document symbols.",
"markdownDeprecationMessage": "This setting has been deprecated in favor of `typescript.tsserver.useSyntaxServer`."
},
"typescript.tsserver.useSyntaxServer": {
"type": "string",
"description": "Controls if TypeScript launches a dedicated server to more quickly handle syntax related operations, such as computing code folding.",
"default": "auto",
"enum": [
"always",
"never",
"auto"
],
"enumDescriptions": [
"Use a lighter weight syntax server to handle all IntelliSense operations. This syntax server can only provide IntelliSense for opened files.",
"Don't use a dedicated syntax server. Use a single server to handle all IntelliSense operations.",
"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."
]
},
"typescript.tsserver.maxTsServerMemory": {
"type": "number",
"default": 3072,
"markdownDescription": "The maximum amount of memory (in MB) to allocate to the TypeScript server process. To use a memory limit greater than 4 GB, use `#typescript.tsserver.nodePath#` to run TS Server with a custom Node installation."
},
"typescript.tsserver.experimental.enableProjectDiagnostics": {
"type": "boolean",
"default": false,
"description": "(Experimental) Enables project wide error reporting."
},
"typescript.tsserver.watchOptions": {
"type": "object",
"description": "Configure which watching strategies should be used to keep track of files and directories.",
"properties": {
"watchFile": {
"type": "string",
"description": "Strategy for how individual files are watched.",
"enum": [
"fixedChunkSizePolling",
"fixedPollingInterval",
"priorityPollingInterval",
"dynamicPriorityPolling",
"useFsEvents",
"useFsEventsOnParentDirectory"
],
"enumDescriptions": [
"Polls files in chunks at regular interval.",
"Check every file for changes several times a second at a fixed interval.",
"Check every file for changes several times a second, but use heuristics to check certain types of files less frequently than others.",
"Use a dynamic queue where less-frequently modified files will be checked less often.",
"Attempt to use the operating system/file system's native events for file changes.",
"Attempt to use the operating system/file system's native events to listen for changes on a file's containing directories. This can use fewer file watchers, but might be less accurate."
],
"default": "useFsEvents"
},
"watchDirectory": {
"type": "string",
"description": "Strategy for how entire directory trees are watched under systems that lack recursive file-watching functionality.",
"enum": [
"fixedChunkSizePolling",
"fixedPollingInterval",
"dynamicPriorityPolling",
"useFsEvents"
],
"enumDescriptions": [
"Polls directories in chunks at regular interval.",
"Check every directory for changes several times a second at a fixed interval.",
"Use a dynamic queue where less-frequently modified directories will be checked less often.",
"Attempt to use the operating system/file system's native events for directory changes."
],
"default": "useFsEvents"
},
"fallbackPolling": {
"type": "string",
"description": "When using file system events, this option specifies the polling strategy that gets used when the system runs out of native file watchers and/or doesn't support native file watchers.",
"enum": [
"fixedPollingInterval",
"priorityPollingInterval",
"dynamicPriorityPolling"
],
"enumDescriptions": [
"Check every file for changes several times a second at a fixed interval.",
"Check every file for changes several times a second, but use heuristics to check certain types of files less frequently than others.",
null
]
},
"synchronousWatchDirectory": {
"type": "boolean",
"description": "Disable deferred watching on directories. Deferred watching is useful when lots of file changes might occur at once (e.g. a change in node_modules from running npm install), but you might want to disable it with this flag for some less-common setups."
}
}
},
"typescript.workspaceSymbols.scope": {
"type": "string",
"enum": [
"allOpenProjects",
"currentProject"
],
"enumDescriptions": [
"Search all open JavaScript or TypeScript projects for symbols.",
"Only search for symbols in the current JavaScript or TypeScript project."
],
"default": "allOpenProjects",
"markdownDescription": "Controls which files are searched by [Go to Symbol in Workspace](https://code.visualstudio.com/docs/editor/editingevolved#_open-symbol-by-name)."
},
"javascript.suggest.classMemberSnippets.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable snippet completions for class members."
},
"typescript.suggest.classMemberSnippets.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable snippet completions for class members."
},