forked from neoclide/coc-tsserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
1206 lines (1206 loc) · 47 KB
/
package.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
{
"name": "coc-tsserver",
"version": "2.2.0",
"description": "javascript and typescript language features extension of coc.nvim",
"main": "lib/index.js",
"publisher": "chemzqm",
"engines": {
"coc": "^0.0.82"
},
"repository": {
"type": "git",
"url": "https://github.com/neoclide/coc-tsserver.git"
},
"keywords": [
"coc.nvim",
"tsserver",
"typescript",
"javascript"
],
"scripts": {
"prepare": "node esbuild.js"
},
"activationEvents": [
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:javascript.jsx",
"onLanguage:typescript",
"onLanguage:typescript.tsx",
"onLanguage:typescript.jsx",
"onLanguage:typescriptreact",
"onLanguage:jsx-tags",
"onLanguage:jsonc",
"onCommand:_typescript.configurePlugin",
"onCommand:tsserver.reloadProjects",
"onCommand:tsserver.goToProjectConfig",
"onCommand:tsserver.openTsServerLog",
"onCommand:tsserver.goToSourceDefinition",
"onCommand:tsserver.watchBuild"
],
"contributes": {
"rootPatterns": [
{
"filetype": "javascript",
"patterns": [
"package.json",
"jsconfig.json"
]
},
{
"filetype": "javascriptreact",
"patterns": [
"package.json",
"jsconfig.json"
]
},
{
"filetype": "typescript",
"patterns": [
"package.json",
"tsconfig.json"
]
},
{
"filetype": "typescriptreact",
"patterns": [
"package.json",
"tsconfig.json"
]
}
],
"commands": [
{
"title": "Reload current project",
"category": "TSServer",
"command": "tsserver.reloadProjects"
},
{
"title": "Open log file of tsserver.",
"category": "TSServer",
"command": "tsserver.openTsServerLog"
},
{
"title": "Open project config file.",
"category": "TSServer",
"command": "tsserver.goToProjectConfig"
},
{
"title": "Restart tsserver",
"category": "TSServer",
"command": "tsserver.restart"
},
{
"title": "Find File References",
"category": "TSServer",
"command": "tsserver.findAllFileReferences"
},
{
"command": "tsserver.goToSourceDefinition",
"title": "Go to Source Definition",
"category": "TSServer"
},
{
"title": "Run `tsc --watch` for current project by use vim's job feature.",
"category": "TSServer",
"command": "tsserver.watchBuild"
},
{
"title": "Fix autofixable problems of current document.",
"category": "TSServer",
"command": "tsserver.executeAutofix"
},
{
"title": "Choose different typescript version for current project",
"category": "TSServer",
"command": "tsserver.chooseVersion"
}
],
"configuration": {
"type": "object",
"title": "Tsserver",
"properties": {
"tsserver.enable": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Enable running of tsserver."
},
"tsserver.tsconfigPath": {
"type": "string",
"default": "tsconfig.json",
"scope": "resource",
"description": "Path to tsconfig file for the `tsserver.watchBuild` command. Defaults to `tsconfig.json`."
},
"tsserver.locale": {
"type": "string",
"default": "auto",
"enum": [
"auto",
"de",
"es",
"en",
"fr",
"it",
"ja",
"ko",
"ru",
"zh-CN",
"zh-TW"
],
"markdownDescription": "Sets the locale used to report JavaScript and TypeScript errors. Defaults to use VS Code's locale.",
"scope": "window"
},
"tsserver.useLocalTsdk": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "Use tsserver from typescript module in workspace folder, ignore tsserver.tsdk configuration."
},
"tsserver.maxTsServerMemory": {
"type": "number",
"default": 3072,
"scope": "application",
"description": "Set the maximum amount of memory to allocate to the TypeScript server process"
},
"tsserver.watchOptions": {
"type": "object",
"description": "Configure which watching strategies should be used to keep track of files and directories. Requires using TypeScript 3.8+ in the workspace.",
"scope": "application",
"properties": {
"watchFile": {
"type": "string",
"description": "Strategy for how individual files are watched.",
"enum": [
"fixedPollingInterval",
"priorityPollingInterval",
"dynamicPriorityPolling",
"useFsEvents",
"useFsEventsOnParentDirectory"
],
"default": "useFsEvents"
},
"watchDirectory": {
"type": "string",
"description": "Strategy for how entire directory trees are watched under systems that lack recursive file-watching functionality.",
"enum": [
"fixedPollingInterval",
"dynamicPriorityPolling",
"useFsEvents"
],
"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"
]
},
"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."
}
}
},
"tsserver.tsdk": {
"type": "string",
"default": "",
"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 `tsserver.tsdk` automatically replaces the built-in TypeScript version.\n- When specified as a workspace setting, the tsserver is used when `tsserver.useLocalTsdk` is true.\nUse command `:CocCommand tsserver.chooseVersion` to choose different typescript version.",
"scope": "resource"
},
"tsserver.npm": {
"type": "string",
"default": "",
"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).",
"scope": "application"
},
"tsserver.log": {
"type": "string",
"default": "off",
"enum": [
"normal",
"terse",
"verbose",
"off"
],
"scope": "application",
"description": "Log level of tsserver"
},
"tsserver.trace.server": {
"type": "string",
"default": "off",
"enum": [
"off",
"messages",
"verbose"
],
"scope": "application",
"description": "Trace level of tsserver"
},
"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.",
"scope": "window"
},
"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.",
"scope": "machine"
},
"tsserver.reportStyleChecksAsWarnings": {
"type": "boolean",
"scope": "window",
"default": true,
"description": "Report style checks as warnings."
},
"tsserver.implicitProjectConfig.checkJs": {
"type": "boolean",
"default": false,
"scope": "window",
"description": "Enable checkJs for implicit project"
},
"tsserver.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"
],
"scope": "window"
},
"tsserver.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"
],
"scope": "window"
},
"tsserver.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.",
"scope": "window"
},
"tsserver.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.",
"scope": "window"
},
"tsserver.implicitProjectConfig.experimentalDecorators": {
"type": "boolean",
"default": false,
"scope": "window",
"description": "Enable experimentalDecorators for implicit project"
},
"tsserver.disableAutomaticTypeAcquisition": {
"type": "boolean",
"default": false,
"scope": "window",
"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."
},
"tsserver.useSyntaxServer": {
"type": "string",
"scope": "window",
"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."
]
},
"tsserver.experimental.enableProjectDiagnostics": {
"type": "boolean",
"default": false,
"description": "(Experimental) Enables project wide error reporting.",
"scope": "window",
"tags": [
"experimental"
]
},
"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).",
"scope": "window"
},
"typescript.showUnused": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Show unused variable hint."
},
"typescript.showDeprecated": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Show deprecated variable hint."
},
"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.",
"scope": "resource"
},
"typescript.implementationsCodeLens.enabled": {
"type": "boolean",
"scope": "window",
"default": false,
"description": "Enable codeLens for implementations"
},
"typescript.referencesCodeLens.enabled": {
"type": "boolean",
"scope": "window",
"default": false,
"description": "Enable codeLens for references"
},
"typescript.referencesCodeLens.showOnAllFunctions": {
"type": "boolean",
"default": false,
"description": "Enable/disable references CodeLens on all functions in typescript files.",
"scope": "window"
},
"typescript.preferences.importModuleSpecifier": {
"type": "string",
"default": "shortest",
"scope": "window",
"description": "Preferred path style for auto imports.",
"enumDescriptions": [
"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. Requires using TypeScript 4.2+ in the workspace."
],
"enum": [
"shortest",
"relative",
"non-relative",
"project-relative"
]
},
"typescript.preferences.importModuleSpecifierEnding": {
"type": "string",
"enum": [
"auto",
"minimal",
"index",
"js"
],
"default": "auto",
"description": "Preferred path ending for auto imports.",
"scope": "resource"
},
"typescript.preferences.jsxAttributeCompletionStyle": {
"type": "string",
"enum": [
"auto",
"braces",
"none"
],
"markdownEnumDescriptions": [
"Insert `={}` or `=\"\"` after attribute names based on the prop type.",
"Insert `={}` after attribute names.",
"Only insert attribute names."
],
"default": "auto",
"description": "Preferred style for JSX attribute completions.",
"scope": "resource"
},
"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.",
"scope": "window"
},
"typescript.preferences.quoteStyle": {
"type": "string",
"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: `\"`"
],
"enum": [
"auto",
"single",
"double"
],
"scope": "language-overridable"
},
"typescript.preferences.useAliasesForRenames": {
"type": "boolean",
"default": true,
"description": "Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.",
"scope": "language-overridable"
},
"typescript.preferences.autoImportFileExcludePatterns": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "Specify glob patterns of files to exclude from auto imports. Requires using TypeScript 4.8 or newer in the workspace.",
"scope": "resource"
},
"typescript.preferences.renameShorthandProperties": {
"type": "boolean",
"default": true,
"description": "Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.",
"deprecationMessage": "The setting 'typescript.preferences.renameShorthandProperties' has been deprecated in favor of 'typescript.preferences.useAliasesForRenames'",
"scope": "language-overridable"
},
"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.",
"scope": "language-overridable"
},
"typescript.suggestionActions.enabled": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Enable/disable suggestion diagnostics for TypeScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace."
},
"typescript.validate.enable": {
"type": "boolean",
"default": true,
"scope": "window",
"description": "Enable/disable TypeScript validation."
},
"typescript.suggest.enabled": {
"type": "boolean",
"default": true,
"description": "Enabled/disable autocomplete suggestions.",
"scope": "language-overridable"
},
"typescript.suggest.paths": {
"type": "boolean",
"default": true,
"scope": "language-overridable",
"description": "Enable/disable suggest paths in import statement and require calls"
},
"typescript.suggest.autoImports": {
"type": "boolean",
"default": true,
"scope": "language-overridable",
"description": "Enable/disable auto import suggests."
},
"typescript.suggest.completeFunctionCalls": {
"type": "boolean",
"default": true,
"scope": "language-overridable",
"description": "Enable snippet for method suggestion"
},
"typescript.suggest.includeCompletionsForImportStatements": {
"type": "boolean",
"default": true,
"description": "Enable/disable auto-import-style completions on partially-typed import statements. Requires using TypeScript 4.3+ in the workspace.",
"scope": "resource"
},
"typescript.suggest.includeCompletionsWithSnippetText": {
"type": "boolean",
"default": true,
"description": "Enable/disable snippet completions from TS Server. Requires using TypeScript 4.3+ in the workspace.",
"scope": "resource"
},
"typescript.suggest.classMemberSnippets.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable snippet completions for class members. Requires using TypeScript 4.5+ in the workspace",
"scope": "resource"
},
"typescript.suggest.jsdoc.generateReturns": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable generating `@return` annotations for JSDoc templates. Requires using TypeScript 4.2+ in the workspace.",
"scope": "language-overridable"
},
"typescript.format.enable": {
"type": "boolean",
"default": true,
"scope": "window",
"description": "Enable format for typescript."
},
"typescript.format.insertSpaceAfterCommaDelimiter": {
"type": "boolean",
"scope": "resource",
"description": "Defines space handling after a comma delimiter.",
"default": true
},
"typescript.format.insertSpaceAfterConstructor": {
"type": "boolean",
"scope": "resource",
"description": "Defines space handling after the constructor keyword.",
"default": false
},
"typescript.format.insertSpaceAfterSemicolonInForStatements": {
"type": "boolean",
"scope": "resource",
"description": "Defines space handling after a semicolon in a for statement.",
"default": true
},
"typescript.format.insertSpaceBeforeAndAfterBinaryOperators": {
"type": "boolean",
"scope": "resource",
"description": "Defines space handling after a binary operator.",
"default": true
},
"typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
"type": "boolean",
"scope": "resource",
"description": "Defines space handling after keywords in a control flow statement.",
"default": true
},
"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
"type": "boolean",
"scope": "resource",
"description": "Defines space handling after function keyword for anonymous functions.",
"default": true
},
"typescript.format.insertSpaceBeforeFunctionParenthesis": {
"type": "boolean",
"scope": "resource",
"description": "Defines space handling before function argument parentheses.",
"default": false
},
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
"type": "boolean",
"scope": "resource",
"description": "Defines space handling after opening and before closing non-empty parenthesis.",
"default": false
},
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
"type": "boolean",
"scope": "resource",
"description": "Defines space handling after opening and before closing non-empty brackets.",
"default": false
},
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": {
"type": "boolean",
"scope": "resource",
"description": "Defines space handling after opening and before closing empty braces.",
"default": false
},
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
"type": "boolean",
"scope": "resource",
"description": "Defines space handling after opening and before closing non-empty braces.",
"default": false
},
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
"type": "boolean",
"scope": "resource",
"description": "Defines space handling after opening and before closing template string braces.",
"default": false
},
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
"type": "boolean",
"scope": "resource",
"description": "Defines space handling after opening and before closing JSX expression braces.",
"default": false
},
"typescript.format.insertSpaceAfterTypeAssertion": {
"type": "boolean",
"scope": "resource",
"description": "Defines space handling after type assertions in TypeScript.",
"default": false
},
"typescript.format.placeOpenBraceOnNewLineForFunctions": {
"type": "boolean",
"scope": "resource",
"description": "Defines whether an open brace is put onto a new line for functions or not.",
"default": false
},
"typescript.format.placeOpenBraceOnNewLineForControlBlocks": {
"type": "boolean",
"scope": "resource",
"description": "Defines whether an open brace is put onto a new line for control blocks or not.",
"default": false
},
"typescript.format.semicolons": {
"type": "string",
"default": "ignore",
"description": "Defines handling of optional semicolons. Requires using TypeScript 3.7 or newer in the workspace.",
"scope": "resource",
"enum": [
"ignore",
"insert",
"remove"
]
},
"typescript.suggest.includeAutomaticOptionalChainCompletions": {
"type": "boolean",
"default": true,
"description": "Enable/disable showing completions on potentially undefined values that insert an optional chain call. Requires TS 3.7+ and strict null checks to be enabled.",
"scope": "language-overridable"
},
"typescript.workspaceSymbols.scope": {
"type": "string",
"description": "Controls which files are searched by [go to symbol in workspace](https://code.visualstudio.com/docs/editor/editingevolved#_open-symbol-by-name).",
"enum": [
"allOpenProjects",
"currentProject"
],
"enumDescriptions": [
"Search all open JavaScript or TypeScript projects for symbols. Requires using TypeScript 3.9 or newer in the workspace.",
"Only search for symbols in the current JavaScript or TypeScript project."
],
"default": "allOpenProjects",
"scope": "window"
},
"typescript.autoClosingTags": {
"type": "boolean",
"default": true,
"scope": "language-overridable",
"description": "Enable/disable automatic closing of JSX tags."
},
"typescript.preferGoToSourceDefinition": {
"type": "boolean",
"default": false,
"description": "Makes Go to Definition avoid type declaration files when possible by triggering Go to Source Definition instead. Requires using TypeScript 4.7+ in the workspace.",
"scope": "window"
},
"javascript.showUnused": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Show unused variable hint."
},
"javascript.showDeprecated": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Show deprecated variable hint."
},
"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.",
"scope": "resource"
},
"javascript.implementationsCodeLens.enabled": {
"type": "boolean",
"scope": "window",
"description": "Enable/disable implementations CodeLens. This CodeLens shows the implementers of an interface.",
"default": false
},
"javascript.referencesCodeLens.enabled": {
"type": "boolean",
"scope": "window",
"description": "Enable/disable references CodeLens in JavaScript files.",
"default": false
},
"javascript.referencesCodeLens.showOnAllFunctions": {
"type": "boolean",
"default": false,
"description": "Enable/disable references CodeLens on all functions in JavaScript files.",
"scope": "window"
},
"javascript.preferences.importModuleSpecifier": {
"type": "string",
"default": "shortest",
"description": "Preferred path style for auto imports.",
"scope": "language-overridable",
"enumDescriptions": [
"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. Requires using TypeScript 4.2+ in the workspace."
],
"enum": [
"shortest",
"relative",
"non-relative",
"project-relative"
]
},
"javascript.preferences.importModuleSpecifierEnding": {
"type": "string",
"enum": [
"auto",
"minimal",
"index",
"js"
],
"scope": "language-overridable",
"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.",
"Insert `={}` after attribute names.",
"Only insert attribute names."
],
"default": "auto",
"description": "Preferred style for JSX attribute completions.",
"scope": "language-overridable"
},
"javascript.preferences.quoteStyle": {
"type": "string",
"default": "auto",
"scope": "language-overridable",
"markdownDescription": "Preferred quote style to use for quick fixes.",
"markdownEnumDescriptions": [
"Infer quote type from existing code",
"Always use single quotes: `'`",
"Always use double quotes: `\"`"
],
"enum": [
"auto",
"single",
"double"
]
},
"javascript.preferences.useAliasesForRenames": {
"type": "boolean",
"default": true,
"description": "Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.",
"scope": "language-overridable"
},
"javascript.preferences.autoImportFileExcludePatterns": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "Specify glob patterns of files to exclude from auto imports. Requires using TypeScript 4.8 or newer in the workspace.",
"scope": "resource"
},
"javascript.preferences.renameShorthandProperties": {
"type": "boolean",
"default": true,
"description": "Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.",
"deprecationMessage": "The setting 'typescript.preferences.renameShorthandProperties' has been deprecated in favor of 'typescript.preferences.useAliasesForRenames'",
"scope": "language-overridable"
},
"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.",
"scope": "language-overridable"
},
"javascript.validate.enable": {
"type": "boolean",
"default": true,
"scope": "window",
"description": "Enable/disable JavaScript validation."
},
"javascript.suggestionActions.enabled": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Enable/disable suggestion diagnostics for JavaScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace."
},
"javascript.suggest.names": {
"type": "boolean",
"scope": "language-overridable",
"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`.",
"default": true
},
"javascript.suggest.enabled": {
"type": "boolean",
"scope": "language-overridable",
"description": "Enabled/disable autocomplete suggestions.",
"default": true
},
"javascript.suggest.paths": {
"type": "boolean",
"default": true,
"scope": "language-overridable",
"description": "Enable/disable suggest paths in import statement and require calls"
},
"javascript.suggest.autoImports": {
"type": "boolean",
"default": true,
"scope": "language-overridable",
"description": "Enable/disable auto import suggests."
},
"javascript.suggest.completeFunctionCalls": {
"type": "boolean",
"default": true,
"scope": "language-overridable",
"description": "Enable snippet for method suggestion"
},
"javascript.suggest.includeCompletionsForImportStatements": {
"type": "boolean",
"default": true,
"description": "Enable/disable auto-import-style completions on partially-typed import statements. Requires using TypeScript 4.3+ in the workspace.",
"scope": "resource"
},
"javascript.suggest.classMemberSnippets.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable snippet completions for class members. Requires using TypeScript 4.5+ in the workspace",
"scope": "resource"
},
"javascript.suggest.jsdoc.generateReturns": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable generating `@return` annotations for JSDoc templates. Requires using TypeScript 4.2+ in the workspace.",
"scope": "language-overridable"
},
"javascript.format.enable": {
"type": "boolean",
"default": true,
"scope": "window",
"description": "Enable format for javascript."
},
"javascript.format.insertSpaceAfterCommaDelimiter": {
"type": "boolean",
"scope": "resource",
"default": true
},
"javascript.format.insertSpaceAfterConstructor": {
"type": "boolean",
"scope": "resource",
"default": false
},
"javascript.format.insertSpaceAfterSemicolonInForStatements": {
"type": "boolean",
"scope": "resource",
"default": true
},
"javascript.format.insertSpaceBeforeAndAfterBinaryOperators": {
"type": "boolean",
"scope": "resource",
"default": true
},
"javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
"type": "boolean",
"scope": "resource",
"default": true
},
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
"type": "boolean",
"scope": "resource",
"default": true
},
"javascript.format.insertSpaceBeforeFunctionParenthesis": {
"type": "boolean",
"scope": "resource",
"default": false
},
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
"type": "boolean",
"scope": "resource",
"default": false
},
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
"type": "boolean",
"scope": "resource",
"default": false
},
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": {
"type": "boolean",
"scope": "resource",
"default": false
},
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
"type": "boolean",
"scope": "resource",
"default": false
},
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
"type": "boolean",
"scope": "resource",
"default": false
},
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
"type": "boolean",
"scope": "resource",
"default": false
},
"javascript.format.insertSpaceAfterTypeAssertion": {
"type": "boolean",
"scope": "resource",
"default": false
},
"javascript.format.placeOpenBraceOnNewLineForFunctions": {
"type": "boolean",
"scope": "resource",
"default": false
},
"javascript.format.placeOpenBraceOnNewLineForControlBlocks": {
"type": "boolean",
"scope": "resource",
"default": false