-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
package.json
1564 lines (1564 loc) · 50 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": "code-d",
"displayName": "D Programming Language (code-d)",
"description": "auto-complete, snippets, linter and formatter for dlang",
"version": "0.23.2",
"publisher": "webfreak",
"repository": {
"type": "git",
"url": "https://github.com/Pure-D/code-d.git"
},
"icon": "images/dlogo-square.png",
"license": "MIT",
"engines": {
"vscode": "^1.60.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Linters",
"Formatters",
"Other"
],
"activationEvents": [
"onLanguage:d",
"onLanguage:dml",
"onDebugResolve:code-d",
"onDebugDynamicConfigurations",
"onDebugInitialConfigurations",
"workspaceContains:dub.json",
"workspaceContains:dub.sdl",
"onCommand:code-d.switchConfiguration",
"onCommand:code-d.switchArchType",
"onCommand:code-d.switchBuildType",
"onCommand:code-d.switchCompiler",
"onCommand:code-d.killServer",
"onCommand:code-d.restartServer",
"onCommand:code-d.reloadImports",
"onCommand:code-d.stop",
"onCommand:code-d.insertDscanner",
"onCommand:code-d.rdmdCurrent",
"onCommand:code-d.generateCoverageReport",
"onCommand:code-d.showGCCalls",
"onCommand:code-d.createProject",
"onCommand:code-d.addImport",
"onCommand:code-d.searchDocs",
"onCommand:code-d.openDocsAtCursor",
"onCommand:code-d.convertDubRecipe",
"onCommand:code-d.setupCompiler",
"onCommand:code-d.viewUserGuide",
"onCustomEditor:code-d.dubRecipe"
],
"main": "./out/extension",
"keywords": [
"d",
"dlang",
"d language",
"code-d",
"serve-d",
"d programming"
],
"bugs": {
"email": "[email protected]",
"url": "https://github.com/Pure-D/code-d/issues"
},
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "Per-project executable paths will be disabled",
"restrictedConfigurations": [
"d.servedPath",
"d.dcdClientPath",
"d.dcdServerPath",
"d.dubPath",
"d.dmdPath",
"d.dubCompiler"
]
}
},
"contributes": {
"keybindings": [
{
"command": "code-d.searchDocs",
"key": "ctrl-q ctrl-q",
"when": "editorTextFocus && editorLangId == 'd'"
},
{
"command": "code-d.sortImports",
"key": "ctrl-q ctrl-s",
"when": "editorTextFocus && editorLangId == 'd'"
}
],
"breakpoints": [
{
"language": "d"
}
],
"debuggers": [
{
"type": "code-d",
"label": "D (code-d: Native Debug / C++ / CodeLLDB)",
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"cwd": {
"type": "string",
"description": "Absolute path to the program cwd.",
"default": "${workspaceFolder}"
},
"program": {
"type": "string",
"description": "Absolute or relative path to the program to run.",
"default": "${command:dubTarget}"
},
"args": {
"type": [
"array",
"string"
],
"items": {
"type": "string"
},
"description": "Command line arguments to pass to the program. Can be a string which is passed as-is to Native Debug or parsed for C++. Can also be an array which is concatenated using the platform variable or current executing platform on Native Debug or passed as-is for C++. Using a string for this on Native Debug means you can use pipes and such as they are handled by GDB.",
"default": []
},
"env": {
"type": "object",
"description": "Additional environment variables",
"default": {}
},
"config": {
"type": "object",
"description": "Debug configuration members to overwrite launch settings.",
"default": {}
},
"dubBuild": {
"type": "boolean",
"description": "Build the active DUB project before launching.",
"default": false
},
"platform": {
"type": "string",
"enum": [
"aix",
"android",
"darwin",
"freebsd",
"linux",
"openbsd",
"sunos",
"win32",
"cygwin"
],
"description": "Optional string to override the native nodejs process.platform. Changes how the debugger is invoked like how arguments are escaped, etc.",
"default": ""
},
"debugger": {
"type": "string",
"default": "autodetect",
"enum": [
"autodetect",
"gdb",
"lldb",
"mago",
"vsdbg",
"code-lldb",
"cpp-auto",
"cpp-gdb",
"cpp-lldb",
"nd-gdb",
"nd-lldb"
],
"enumDescriptions": [
"Automatically pick GDB, LLDB, Visual Studio debugger or Mago depending on platform and globally installed applications, automatically chooses the used debugger extension depending if they are installed. Prefers the C++ debug extension.",
"Use GDB with an automatically determined installed debugger extension. Prefers the C++ debug extension.",
"Use LLDB with an automatically determined installed debugger extension. Prefers the C++ debug extension.",
"Use Mago with an automatically determined installed debugger extension. Currently only supported as mago-mi by the Native Debug extension.",
"Use Visual Studio debugger with an automatically determined installed debugger extension. Currently only supported by the C++ extension on Windows.",
"Use GDB or LLDB through the C++ debug extension. (predetermined by C++ extension)",
"Use GDB through the C++ debug extension.",
"Use LLDB through the C++ debug extension.",
"Use GDB through the Native Debug debug extension.",
"Use LLDB through the Native Debug debug extension."
],
"description": "Changes which debugger engine / backend to use from the installed debuggers."
}
}
}
},
"initialConfigurations": [
{
"type": "code-d",
"request": "launch",
"name": "Debug D project",
"cwd": "${workspaceFolder}",
"program": "./executableBinaryName"
}
],
"configurationSnippets": [
{
"label": "DUB: Build & Launch",
"description": "Build & Launch the current DUB project through a debugger",
"body": {
"type": "code-d",
"request": "launch",
"dubBuild": true,
"name": "${1:Build & Debug DUB project}",
"cwd": "^\"\\${command:dubWorkingDirectory}\"",
"program": "^\"\\${command:dubTarget}\""
}
},
{
"label": "D: Launch",
"description": "Launch a D binary through a debugger",
"body": {
"type": "code-d",
"request": "launch",
"name": "${1:Debug D project}",
"cwd": "^\"\\${workspaceFolder}\"",
"program": "${2:./executableBinaryName}"
}
}
],
"variables": {
"dubPackageName": "code-d.getActiveDubPackageName",
"dubPackagePath": "code-d.getActiveDubPackagePath",
"dubWorkingDirectory": "code-d.getActiveDubWorkingDirectory",
"dubTarget": "code-d.getActiveDubTarget",
"dubTargetPath": "code-d.getActiveDubTargetPath",
"dubTargetName": "code-d.getActiveDubTargetName"
}
},
{
"type": "code-d__just_providing_initial_configuration_in_dropdown",
"label": "DUB (code-d: Native Debug / C++ / CodeLLDB)",
"initialConfigurations": [
{
"type": "code-d",
"request": "launch",
"dubBuild": true,
"name": "Build & Debug DUB project",
"cwd": "${command:dubWorkingDirectory}",
"program": "${command:dubTarget}"
}
]
}
],
"viewsWelcome": [
{
"view": "debug",
"contents": "You can run any D files (or D statements in an untitled file) through RDMD using this button, the command palette or by right-clicking a D file. To run or debug complex projects use DUB.\n[Run File with RDMD](command:code-d.rdmdCurrent)",
"when": "d.isActive"
}
],
"languages": [
{
"id": "d",
"extensions": [
".d",
".di"
],
"aliases": [
"D",
"Dlang"
],
"firstLine": "^#!.*(dub|rdmd)",
"configuration": "./lang-configs/d.json"
},
{
"id": "dpp",
"extensions": [
".dpp",
".d++"
],
"aliases": [
"D++"
],
"configuration": "./lang-configs/d.json"
},
{
"id": "dscript",
"aliases": [
"arsd.DScript"
],
"extensions": [
".dscript",
".ds"
],
"configuration": "./lang-configs/general.json"
},
{
"id": "dml",
"aliases": [
"DlangUI Markup Language"
],
"extensions": [
".dml"
],
"configuration": "./lang-configs/general.json"
},
{
"id": "sdl",
"aliases": [
"SDL",
"Simple Declarative Language"
],
"extensions": [
".sdl"
],
"configuration": "./lang-configs/general.json"
},
{
"id": "diet",
"aliases": [
"Diet"
],
"extensions": [
".dt"
],
"configuration": "./lang-configs/diet.json"
},
{
"id": "d-injection"
}
],
"grammars": [
{
"language": "d",
"scopeName": "source.d",
"path": "./syntaxes/d.json"
},
{
"language": "dscript",
"scopeName": "source.dscript",
"path": "./syntaxes/d.json"
},
{
"language": "dml",
"scopeName": "source.dml",
"path": "./syntaxes/dml.json"
},
{
"language": "sdl",
"scopeName": "source.sdl",
"path": "./syntaxes/sdl.json"
},
{
"language": "diet",
"scopeName": "source.diet",
"path": "./syntaxes/diet.json"
},
{
"language": "d-injection",
"scopeName": "markdown.d.codeblock",
"path": "./syntaxes/codeblock.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.d": "d"
}
}
],
"snippets": [
{
"language": "diet",
"path": "./snippets/diet.json"
}
],
"configuration": [
{
"title": "General",
"type": "object",
"properties": {
"d.servedPath": {
"type": "string",
"scope": "machine-overridable",
"title": "Serve-D LSP Path",
"default": "serve-d",
"order": 0,
"markdownDescription": "Path of the serve-d executable, the used LSP server. Path can be omitted if in `$PATH` or auto-installed using code-d on startup."
},
"d.servedReleaseChannel": {
"type": "string",
"scope": "application",
"default": "stable",
"order": 1,
"enum": [
"stable",
"beta",
"nightly",
"frozen"
],
"enumDescriptions": [
"Always fetch the latest pre-compiled stable release binaries from the serve-d GitHub repository",
"Always fetch the latest pre-compiled potentially unstable pre-release binaries from the serve-d GitHub repository",
"Always fetch the latest pre-compiled nightly binaries from the serve-d GitHub repository. These are being generated every night (UTC) if something changed and tests passed.",
"Don't do any update checks for serve-d (not recommended if you don't update serve-d outside code-d)"
],
"markdownDescription": "Release channel (stable, beta, nightly) to automatically download serve-d binaries from. serve-d is the D language server used with code-d and provides all language functionality except syntax highlighting, which is provided by code-d."
},
"d.aggressiveUpdate": {
"type": "boolean",
"scope": "application",
"default": true,
"order": 2,
"markdownDescription": "Automatically update and install outdated or missing tools without user confirmation."
},
"d.showUpdateChangelogs": {
"type": "boolean",
"scope": "application",
"default": true,
"order": 3,
"markdownDescription": "Open `CHANGELOG.md` on every code-d update (which also includes serve-d updates) to see new features."
}
}
},
{
"title": "Auto-Completion",
"type": "object",
"properties": {
"d.enableAutoComplete": {
"order": 0,
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Enable auto-completion in D files, mostly powered by DCD.\n\nIf you have a custom DCD setup, you can change the started dcd-server binary through the `#d.dcdServerPath#` setting."
},
"d.enableAutoImportCompletions": {
"order": 0,
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Enable auto-completion in D files for symbols that are indexed, but not yet imported. Automatically imports them on use.\n\nFor this to work, the `#d.enableIndex#` setting must be enabled."
},
"d.stdlibPath": {
"scope": "machine-overridable",
"title": "Standard Library (Phobos) Path",
"order": 1,
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
],
"defaultSnippets": [
{
"label": "Choose based on platform",
"body": "auto"
},
{
"label": "Linux Default",
"body": [
"/usr/include/dmd/druntime/import",
"/usr/include/dmd/phobos"
]
},
{
"label": "ArchLinux Default",
"body": [
"/usr/include/dlang/dmd"
]
},
{
"label": "Windows Default",
"body": [
"C:\\D\\dmd2\\src\\druntime\\import",
"C:\\D\\dmd2\\src\\phobos"
]
},
{
"label": "OSX Default",
"body": [
"/Library/D/dmd/src/druntime/import",
"/Library/D/dmd/src/phobos"
]
}
],
"markdownDescription": "Array of paths to phobos and D runtime for automatic inclusion for auto completion"
},
"d.dcdServerPath": {
"title": "DCD Server Path",
"type": "string",
"scope": "machine-overridable",
"default": "dcd-server",
"order": 2,
"markdownDescription": "Path of the dcd-server executable. Path can be omitted if in `$PATH` or installed using code-d"
},
"d.dcdClientPath": {
"title": "DCD Client Path",
"type": "string",
"scope": "machine-overridable",
"default": "dcd-client",
"order": 3,
"markdownDescription": "Path of the dcd-client executable. Path can be omitted if in `$PATH` or installed using code-d"
},
"d.projectImportPaths": {
"type": "array",
"scope": "resource",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Sets the import paths in your workspace, only when not using DUB. This will replace other paths. Its recommended to set this in your workspace or folder settings instead of your user settings to keep it separate for each project. Note that these import paths will not be used if DUB is enabled and used in the project. See `#d.neverUseDub#` to disable DUB."
},
"d.argumentSnippets": {
"type": "boolean",
"scope": "resource",
"default": false,
"markdownDescription": "Insert function signatures (function arguments) as snippets which can be navigated using tab when auto-completing functions."
},
"d.dietContextCompletion": {
"type": "boolean",
"scope": "resource",
"default": false,
"markdownDescription": "Read `//-context=path/to/file.d` comments in diet files and act like the D code inside the diet file comes from there, to allow auto-completion of local symbols."
}
}
},
{
"title": "DUB",
"type": "object",
"properties": {
"d.dubPath": {
"type": "string",
"scope": "machine-overridable",
"default": "dub",
"order": 4,
"markdownDescription": "Path of the dub executable. Path can be omitted if in `$PATH` or installed using code-d"
},
"d.dubConfiguration": {
"type": "string",
"scope": "resource",
"order": 5,
"markdownDescription": "Sets the default DUB configuration. Used in DUB linting, auto-completion import paths and DUB build tasks and debugging."
},
"d.dubArchType": {
"type": "string",
"scope": "resource",
"order": 6,
"markdownDescription": "Sets the default DUB architecture. Used in DUB linting, auto-completion import paths and DUB build tasks and debugging."
},
"d.dubBuildType": {
"type": "string",
"scope": "resource",
"order": 7,
"markdownDescription": "Sets the default DUB build type. Used in DUB linting, auto-completion import paths and DUB build tasks and debugging."
},
"d.dubCompiler": {
"type": "string",
"scope": "machine-overridable",
"order": 8,
"markdownDescription": "Sets the default DUB compiler. Used in DUB linting, auto-completion import paths and DUB build tasks and debugging."
},
"d.scanAllFolders": {
"type": "boolean",
"scope": "resource",
"default": true,
"order": 9,
"markdownDescription": "Initialize isolated workspaces for every dub.sdl and dub.json file in all folders, avoiding mixing import paths in unrelated projects."
},
"d.neverUseDub": {
"type": "boolean",
"scope": "resource",
"default": false,
"markdownDescription": "Disable DUB integration and require manually provided import paths using `#d.projectImportPaths#`.\n\nThis is discouraged as it will remove most features like resolving dependencies, building and compiler linting. For standalone projects with no external dependencies with a custom build system then this can be useful."
},
"d.alwaysShowDubStatusButtons": {
"type": "boolean",
"scope": "resource",
"default": false,
"markdownDescription": "Always show DUB Configuration/Arch Type/Build Type/Compiler buttons in DUB projects, and not just when a D file is open."
},
"d.dependencyClickBehavior": {
"type": "string",
"scope": "window",
"enum": [
"listDocumentsPreview",
"listDocumentsSource",
"listDocumentsBoth",
"openRecipe",
"openDpldocs",
"doNothing",
"openFileDialog"
],
"enumItemLabels": [
"Preview Text Document",
"Open Text Document Source",
"Show Text Document Actions",
"Open Package Recipe",
"Open dpldocs.info",
"Do nothing",
"Open File Dialog"
],
"enumDescriptions": [
"Preview a readable document text file of the package",
"See source of a readable document text file of the package",
"Preview or view source of a readable document text file of the package",
"Open dub.json / dub.sdl file of the package",
"Open package on dpldocs.info in a web browser",
"Do nothing",
"Open a file dialog in the dependency folder"
],
"default": "listDocumentsPreview",
"markdownDescription": "Configures what happens when you click a dependency in the DUB Dependency view. For the listDocuments actions if only a single file matches, it is immediately opened. See `#d.dependencyTextDocumentFilter#` setting to configure which files will be shown."
},
"d.dependencyTextDocumentFilter": {
"type": "array",
"scope": "window",
"items": {
"type": "string"
},
"default": [
"^README",
"^CHANGES",
"^CHANGELOG",
"^LICENSE"
],
"markdownDescription": "Filenames that are considered readable documents for when viewing documents of a DUB dependency. You can use regular expressions, but it only matches on the filename (including extension) not on the path, case-insensitive."
}
}
},
{
"title": "Linting",
"type": "object",
"properties": {
"d.enableLinting": {
"order": 0,
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Enable errors and warnings (squiggly lines) while editing source code.\n\nTurning this off disables all diagnostics coming from code-d.You can toggle\n\n- `#d.enableSDLLinting#`\n- `#d.enableDubLinting#`\n- `#d.enableStaticLinting#`\n\nfor finer control instead."
},
"d.enableStaticLinting": {
"order": 1,
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Check D file for errors and warnings, without being built, whenever typing.\n\nOnly has an effect if `#d.enableLinting#` is also turned on."
},
"d.enableDubLinting": {
"order": 2,
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Compile DUB projects on save to check for compile errors.\n\nThis is very similar to running `dub build` on the command line to see what actual errors occur, but does not output any executable or library.\n\nOnly has an effect if `#d.enableLinting#` is also turned on."
},
"d.enableSDLLinting": {
"order": 3,
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Check `dub.sdl` files for errors and warnings.\n\nOnly has an effect if `#d.enableLinting#` is also turned on."
},
"d.lintOnFileOpen": {
"type": "string",
"scope": "resource",
"default": "project",
"enum": [
"always",
"project",
"never"
],
"enumDescriptions": [
"Every opened file will be linted immediately, also for any internal cross-project or external dependencies.",
"Opened files in the current project will be linted immediately. Other files will be linted when editing.",
"Opening files will not lint and only start when editing them."
],
"markdownDescription": "Performs static linting already when opening a file, and not just when editing it. Needs `#d.enableStaticLinting#` to be enabled."
},
"dscanner.ignoredKeys": {
"type": "array",
"scope": "resource",
"items": {
"type": "string",
"enum": [
"dscanner.bugs.backwards_slices",
"dscanner.bugs.if_else_same",
"dscanner.bugs.logic_operator_operands",
"dscanner.bugs.self_assignment",
"dscanner.confusing.argument_parameter_mismatch",
"dscanner.confusing.brexp",
"dscanner.confusing.builtin_property_names",
"dscanner.confusing.constructor_args",
"dscanner.confusing.function_attributes",
"dscanner.confusing.lambda_returns_lambda",
"dscanner.confusing.logical_precedence",
"dscanner.confusing.struct_constructor_default_args",
"dscanner.deprecated.delete_keyword",
"dscanner.deprecated.floating_point_operators",
"dscanner.if_statement",
"dscanner.performance.enum_array_literal",
"dscanner.style.allman",
"dscanner.style.alias_syntax",
"dscanner.style.doc_missing_params",
"dscanner.style.doc_missing_returns",
"dscanner.style.doc_non_existing_params",
"dscanner.style.explicitly_annotated_unittest",
"dscanner.style.has_public_example",
"dscanner.style.imports_sortedness",
"dscanner.style.long_line",
"dscanner.style.number_literals",
"dscanner.style.phobos_naming_convention",
"dscanner.style.undocumented_declaration",
"dscanner.suspicious.auto_ref_assignment",
"dscanner.suspicious.catch_em_all",
"dscanner.suspicious.comma_expression",
"dscanner.suspicious.incomplete_operator_overloading",
"dscanner.suspicious.incorrect_infinite_range",
"dscanner.suspicious.label_var_same_name",
"dscanner.suspicious.length_subtraction",
"dscanner.suspicious.local_imports",
"dscanner.suspicious.missing_return",
"dscanner.suspicious.object_const",
"dscanner.suspicious.redundant_attributes",
"dscanner.suspicious.redundant_parens",
"dscanner.suspicious.static_if_else",
"dscanner.suspicious.unmodified",
"dscanner.suspicious.unused_label",
"dscanner.suspicious.unused_parameter",
"dscanner.suspicious.unused_variable",
"dscanner.suspicious.useless_assert",
"dscanner.unnecessary.duplicate_attribute",
"dscanner.useless.final",
"dscanner.useless-initializer",
"dscanner.vcall_ctor",
"dscanner.syntax"
]
},
"markdownDescription": "DScanner warnings to ignore in this project.\n\nTo disable warnings also with standalone D-Scanner, inside CI or for other people, create a `dscanner.ini` file in the project root.\n\nYou can use the `Insert default dscanner.ini content` command from the VSCode command palette to fill it with defaults."
},
"dscanner.excludedFiles": {
"type": "array",
"scope": "resource",
"items": {
"type": "string"
},
"markdownDescription": "Files or glob patterns to exclude from being linted with DScanner."
}
}
},
{
"title": "Formatting",
"type": "object",
"properties": {
"d.enableFormatting": {
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Apply standard VSCode Formatting behavior to D files. Formatting on save can be configured with `#editor.formatOnSave#`"
},
"sdl.enableFormatting": {
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Apply standard VSCode Formatting behavior to SDL files. (e.g. dub.sdl) Formatting on save can be configured with `#editor.formatOnSave#`"
},
"d.overrideDfmtEditorconfig": {
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Use the VSCode `dfmt.*` config options & editor settings instead of `.editorconfig` files. This avoids inconsistencies with the vscode editor settings, it's recommended to only turn this off when you have the EditorConfig extension for VSCode installed."
},
"dfmt.alignSwitchStatements": {
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Align labels, cases, and defaults with their enclosing switch."
},
"dfmt.braceStyle": {
"type": "string",
"scope": "resource",
"enum": [
"allman",
"otbs",
"stroustrup",
"knr"
],
"enumDescriptions": [
"Curly braces always on separate lines",
"Curly braces on the same line as for example if or while statements. Else on same line as closing curly brace.",
"Curly braces on the same line as for example if or while statements, but a new line after the closing curly brace, even if there is an else",
"Curly braces on the same line for everything except functions"
],
"default": "allman",
"markdownDescription": "See Wikipedia https://en.wikipedia.org/wiki/Brace_style"
},
"dfmt.outdentAttributes": {
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Not yet implemented (on dfmt side)"
},
"dfmt.spaceAfterCast": {
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Insert space after the closing paren of a cast expression."
},
"dfmt.splitOperatorAtLineEnd": {
"type": "boolean",
"scope": "resource",
"default": false,
"markdownDescription": "Place operators on the end of the previous line when splitting lines."
},
"dfmt.selectiveImportSpace": {
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Insert space after the module name and before the `:` for selective imports."
},
"dfmt.compactLabeledStatements": {
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Place labels on the same line as the labeled `switch`, `for`, `foreach`, or `while` statement."
},
"dfmt.templateConstraintStyle": {
"type": "string",
"scope": "resource",
"enum": [
"conditional_newline_indent",
"conditional_newline",
"always_newline",
"always_newline_indent"
],
"enumDescriptions": [
"newline only if constraint will wrap, indent constraint",
"newline only if constraint will wrap",
"always add newline",
"always add newline and indent the constraint"
],
"default": "conditional_newline_indent",
"markdownDescription": "Control the formatting of template constraints. See https://github.com/dlang-community/dfmt/issues/215"
},
"dfmt.spaceBeforeFunctionParameters": {
"type": "boolean",
"scope": "resource",
"default": false,
"markdownDescription": "Insert space before the opening paren of a function parameter list."
},
"dfmt.singleTemplateConstraintIndent": {
"type": "boolean",
"scope": "resource",
"default": false,
"markdownDescription": "Set if the constraints are indented by a single tab instead of two. Has only an effect if `#dfmt.templateConstraintStyle#` is set to `always_newline_indent` or `conditional_newline_indent`."
},
"dfmt.spaceBeforeAAColon": {
"type": "boolean",
"scope": "resource",
"default": false,
"markdownDescription": "Adds a space after an associative array key before the `:` like in older dfmt versions."
},
"dfmt.keepLineBreaks": {
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Keep existing line breaks if these don't violate other formatting rules."
},
"dfmt.singleIndent": {
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Set if the code in parens is indented by a single tab instead of two."
},
"sdl.whitespaceAroundEquals": {
"type": "boolean",
"scope": "resource",
"default": false,
"markdownDescription": "Set if `tag attribute=value` should be formatted to `tag attribute = value`."
},
"sdl.backslashTempIndent": {
"type": "integer",
"scope": "resource",
"default": 2,
"markdownDescription": "Set to how many indents should be inserted after a line-continuation with backslash."
}
}
},
{
"title": "Editing Features",
"type": "object",
"properties": {
"d.enableIndex": {
"order": 0,
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Enable cached background indexing that is used for find references and auto-import suggestions in completion and code actions."
},
"d.enableDMDImportTiming": {
"type": "boolean",
"scope": "resource",
"default": false,
"markdownDescription": "Add code lenses (gray text above source code) on import statements to show how long each import takes to compile on its own. Executes DMD, as set by `#d.dmdPath#`, to get the impact on compilation time by this import."
},
"d.enableCoverageDecoration": {
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Automatically highlight tested/untested coverage inside source code with light red/green backgrounds from `*.lst` files. You can for example run `dub test --config=unittest-cov` to run unittests and collect coverage information."
},
"d.enableGCProfilerDecorations": {
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Automatically embed code lenses (gray text above source code) for GC allocations based on `profilegc.log`. You can for example run `dub run --config=profile-gc` to run the project and see where the GC is actually used."
},
"d.alwaysShowCoverageStatus": {
"type": "boolean",
"scope": "resource",
"default": false,
"markdownDescription": "Always show D code coverage status in status bar when available through `.lst` files, and not just when a D file is open."
},
"d.generateModuleNames": {
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Automatically insert or replace the `module name;` when creating or renaming a file."
},
"d.enableDCDHighlight": {
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "When the text cursor is on a symbol, highlight other uses of the symbol within the current file. Does not change behavior of F2 / rename symbol. `#d.enableFallbackHighlight#` is separate from this and can still be run even if this setting is turned off. This internally runs `dcd-client --localUse`."
},
"d.enableFallbackHighlight": {
"type": "boolean",
"scope": "resource",
"default": true,
"markdownDescription": "Similar to `#d.enableDCDHighlight#`, but for simple cases, such as:\n\n- highlighting equivalent identifiers and text inside strings\n- on `return`, highlight the other `return` statements in the current function\n- on `switch`/`case`/`default` highlight the other switch-related control flow statements\n- on loops, `break`/`continue`, highlight break/continue/return\n- on `if`/`else`, highlight all if/if else/else blocks associated with the current if statement"
}
}
},
{
"title": "Advanced",
"type": "object",
"properties": {
"d.disabledRootGlobs": {
"type": "array",
"scope": "resource",
"items": {
"type": "string"
},
"default": [],
"order": 0,
"markdownDescription": "Array of [globs](https://dlang.org/phobos/std_path.html#.globMatch) for preventing project instances in certain folders by the `#d.scanAllFolders#` setting. The globs should match the DUB project folders, e.g. the ones that contain a `dub.json` or `dub.sdl` file."
},
"d.extraRoots": {
"type": "array",
"scope": "resource",
"items": {
"type": "string"
},
"default": [],
"order": 1,
"markdownDescription": "Array of workspace-relative (or absolute) folders to force start a project instance in."
},
"d.ccdbPath": {
"type": "string",
"scope": "resource",
"default": null,
"description": "Path to a Clang compilation database (aka. CCDB, aka. `compile_commands.json`) to use to lint this project"
},
"d.dmdPath": {
"type": "string",
"scope": "machine-overridable",
"default": "dmd",
"markdownDescription": "Path of the dmd executable. Path can be omitted if in `$PATH`. Used with the `#d.enableDMDImportTiming#` setting and to compile serve-d if there is no pre-compiled binary for the running platform."
},
"d.betaStream": {
"type": "boolean",
"scope": "application",
"markdownDeprecationMessage": "This option has been replaced by setting `#d.servedReleaseChannel#` to `\"nightly\"`.",
"default": false,
"description": "Always get latest serve-d commit when starting vscode and an update is available."
},
"d.smartServedUpdates": {
"title": "Smart Serve-D updates",
"type": "boolean",
"scope": "application",
"default": true,
"markdownDescription": "Randomly omit serve-d update checks to save bandwidth. Lowers startup delay and minimizes breakage on new releases with quick fixes. Also avoids to update when working on fridays."
},
"d.manyProjectsAction": {
"type": "string",
"scope": "resource",
"default": "ask",
"enum": [
"ask",
"skip",
"load"
],