Repository navigation
Expand file tree
/
Copy pathsettings.json
More file actions
1226 lines (1226 loc) · 37.5 KB
/
Copy pathsettings.json
File metadata and controls
1226 lines (1226 loc) · 37.5 KB
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
{
"version": 1,
"groups": [
{
"id": "project",
"order": 10,
"title": "Project"
},
{
"id": "tasks",
"order": 20,
"title": "Tasks"
},
{
"id": "languageService",
"order": 30,
"title": "C++ Modules language service"
},
{
"id": "toml",
"order": 40,
"title": "mcpp.toml editing"
},
{
"id": "buildScript",
"order": 50,
"title": "build.mcpp editing"
},
{
"id": "cache",
"order": 60,
"title": "Cache"
},
{
"id": "views",
"order": 70,
"title": "Views"
},
{
"id": "ui",
"order": 80,
"title": "Interface"
},
{
"id": "diagnostics",
"order": 90,
"title": "Diagnostics and logging"
},
{
"id": "advanced",
"order": 100,
"title": "Advanced"
}
],
"settings": [
{
"key": "mcpp.path",
"type": "string",
"default": "",
"scope": "resource",
"group": "project",
"order": 10,
"tier": "public",
"applies": "immediate",
"since": "0.1.0",
"title": "Set the mcpp executable path",
"description": "Path to the mcpp CLI used for every mcpp command. Leave it empty to look up mcpp on the PATH of the VS Code process."
},
{
"key": "mcpp.project.discoveryBoundary",
"type": "string",
"default": "workspaceFolder",
"enum": [
"workspaceFolder",
"filesystem"
],
"scope": "resource",
"group": "project",
"order": 20,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Limit project discovery scope",
"description": "How far the extension walks to find mcpp.toml. \"filesystem\" also searches outside the workspace folder; it costs more I/O and can reach unrelated trees."
},
{
"key": "mcpp.task.clearTerminal",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "tasks",
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Clear the task terminal",
"description": "Clear the terminal before an mcpp task starts, so the last build's output is not mistaken for this one's.",
"order": 1
},
{
"key": "mcpp.task.buildArgs",
"type": "array",
"default": [],
"scope": "resource",
"group": "tasks",
"order": 10,
"tier": "public",
"applies": "next-build",
"since": "0.5.0",
"title": "Add arguments to mcpp build",
"description": "Extra arguments appended to the mcpp build task. Applied on the next build.",
"items": {
"type": "string"
}
},
{
"key": "mcpp.task.runArgs",
"type": "array",
"default": [],
"scope": "resource",
"group": "tasks",
"order": 20,
"tier": "public",
"applies": "next-build",
"since": "0.5.0",
"title": "Add arguments to mcpp run",
"description": "Extra arguments appended to the mcpp run task. Applied on the next run.",
"items": {
"type": "string"
}
},
{
"key": "mcpp.task.testArgs",
"type": "array",
"default": [],
"scope": "resource",
"group": "tasks",
"order": 30,
"tier": "public",
"applies": "next-build",
"since": "0.5.0",
"title": "Add arguments to mcpp test",
"description": "Extra arguments appended to the mcpp test task. Applied on the next test run.",
"items": {
"type": "string"
}
},
{
"key": "mcpp.task.cleanArgs",
"type": "array",
"default": [],
"scope": "resource",
"group": "tasks",
"order": 40,
"tier": "public",
"applies": "next-clean",
"since": "0.5.0",
"title": "Add arguments to mcpp clean",
"description": "Extra arguments appended to the mcpp clean task. Applied on the next clean.",
"items": {
"type": "string"
}
},
{
"key": "mcpp.task.confirmClean",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "tasks",
"order": 50,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Confirm before cleaning",
"description": "Ask for confirmation before a clean task deletes the target directory of the project."
},
{
"key": "mcpp.task.revealTerminal",
"type": "string",
"default": "always",
"enum": [
"always",
"onFailure",
"never"
],
"scope": "resource",
"group": "tasks",
"order": 60,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Reveal the task terminal",
"description": "When an mcpp task brings the terminal panel to the front: always, only when the task fails, or never."
},
{
"key": "mcpp.task.focusTerminal",
"type": "boolean",
"default": false,
"scope": "resource",
"group": "tasks",
"order": 70,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Focus the task terminal",
"description": "Move keyboard focus to the terminal while an mcpp task runs. Off by default so editor focus is not taken away."
},
{
"key": "mcpp.task.problemMatcher",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "tasks",
"order": 80,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Parse task problems",
"description": "Parse compiler output of the mcpp build and test tasks into the Problems panel."
},
{
"key": "mcpp.task.editorTitleButtons",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "tasks",
"order": 90,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Show editor title buttons",
"description": "Show the Run and Test buttons in the editor title bar while the file belongs to an mcpp project."
},
{
"key": "mcpp.build.onSave",
"type": "boolean",
"default": false,
"scope": "resource",
"group": "tasks",
"order": 100,
"tier": "public",
"applies": "immediate",
"since": "1.0.0",
"title": "Build when a file is saved",
"description": "Start a build of the file's project when a source or mcpp.toml is saved. A save while a build waits replaces it; a running build is cancelled and started again."
},
{
"key": "mcpp.build.profile",
"type": "string",
"default": "dev",
"enum": [
"dev",
"release"
],
"scope": "resource",
"group": "tasks",
"order": 110,
"tier": "public",
"applies": "immediate",
"since": "1.0.0",
"title": "Choose the build profile",
"description": "The profile build, run, test and debug use: dev (unoptimised, debug information) or release."
},
{
"key": "mcpp.build.target",
"type": "string",
"default": "",
"scope": "resource",
"group": "tasks",
"order": 120,
"tier": "public",
"applies": "immediate",
"since": "1.0.0",
"title": "Choose the build target",
"description": "The target build, run, test, debug and pack use, as mcpp names it (x86_64-linux-musl, x86_64-openkal). Empty: this machine. The Targets panel lists the targets and the platform that configures each."
},
{
"key": "mcpp.debug.engine",
"type": "string",
"default": "auto",
"enum": [
"auto",
"cppdbg",
"lldb",
"lldb-dap",
"gdb"
],
"scope": "resource",
"group": "tasks",
"order": 130,
"tier": "public",
"applies": "immediate",
"since": "1.0.0",
"title": "Choose the debugger",
"description": "The debug adapter a debug session uses. auto: CodeLLDB when it is installed, then the C/C++ extension's gdb or lldb, then lldb-dap."
},
{
"key": "mcpp.codeLens.enable",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "tasks",
"order": 140,
"tier": "public",
"applies": "immediate",
"since": "1.1.0",
"title": "Show Run and Debug above main",
"description": "A CodeLens above the main of a program or a test: Run and Debug. Where C++ Modules serves the file its position is the language service's; otherwise the line is read from the text."
},
{
"key": "mcpp.test.macros",
"type": "array",
"default": [],
"scope": "resource",
"group": "tasks",
"order": 150,
"tier": "advanced",
"applies": "immediate",
"since": "1.1.0",
"title": "Add a test framework's macros",
"description": "Macros that write a test framework's cases, each as framework:MACRO (gtest:MY_TEST). A test program's cases are listed only when its source calls one of its framework's macros."
},
{
"key": "mcpp.languageService.menuItems",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "languageService",
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Show language-service entries in the menu",
"description": "Keep the C++ Modules actions in the mcpp quick menu. Turn off to leave the menu to mcpp's own commands.",
"order": 1
},
{
"key": "mcpp.languageService.confirmResetCache",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "languageService",
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Confirm resetting the workspace cache",
"description": "Ask before running the C++ Modules reset, which discards this workspace's model cache and prepares it again. Turning this off removes the only warning before that happens.",
"order": 2
},
{
"key": "mcpp.languageService.refreshAfterBuild",
"type": "string",
"default": "auto",
"enum": [
"auto",
"reload",
"restart",
"off"
],
"scope": "resource",
"group": "languageService",
"order": 10,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Refresh language service after build",
"description": "How mcpp-vscode tells the C++ Modules extension about a finished build: auto, a lightweight reload, a full restart, or nothing."
},
{
"key": "mcpp.languageService.notifyOnDegraded",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "languageService",
"order": 20,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Notify when the language service degrades",
"description": "Show a notification when the C++ Modules language service reports a degraded state."
},
{
"key": "mcpp.languageService.readState",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "languageService",
"order": 30,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Read language service state",
"description": "Read status from the C++ Modules extension through the API it exposes for tests. Turning this off only hides status; it never changes mcppls itself."
},
{
"key": "mcpp.languageService.stateRefreshSeconds",
"type": "number",
"default": 0,
"minimum": 0,
"scope": "resource",
"group": "languageService",
"order": 40,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Set the state refresh interval",
"description": "Re-read the language service state every this many seconds. 0 disables the timer."
},
{
"key": "mcpp.toml.completion",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "toml",
"order": 10,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"aliases": [
"mcpp.tomlCompletion"
],
"title": "Complete mcpp.toml keys",
"description": "Offer section, key and value completion while editing mcpp.toml. The old mcpp.tomlCompletion key still works as an alias."
},
{
"key": "mcpp.toml.hover",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "toml",
"order": 20,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Show mcpp.toml hovers",
"description": "Show documentation for sections and keys when hovering in mcpp.toml."
},
{
"key": "mcpp.toml.navigation",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "toml",
"order": 30,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Navigate inside mcpp.toml",
"description": "Enable go-to-definition for workspace, path and feature references in mcpp.toml."
},
{
"key": "mcpp.toml.diagnostics.enabled",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "toml",
"order": 40,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Enable mcpp.toml diagnostics",
"description": "Turn all mcpp.toml validation on or off. Every rule keeps its own severity setting."
},
{
"key": "mcpp.toml.diagnostics.syntax",
"type": "string",
"default": "error",
"enum": [
"error",
"warning",
"info",
"off"
],
"scope": "resource",
"group": "toml",
"order": 50,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Set syntax diagnostic severity",
"description": "Severity used for mcpp.toml syntax errors.",
"deprecationMessage": "mcpp reports mcpp.toml problems itself, with their location; this setting no longer has an effect."
},
{
"key": "mcpp.toml.diagnostics.unknownSection",
"type": "string",
"default": "warning",
"enum": [
"error",
"warning",
"info",
"off"
],
"scope": "resource",
"group": "toml",
"order": 60,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Set unknown section severity",
"description": "Severity used for sections that mcpp does not recognise.",
"deprecationMessage": "mcpp reports mcpp.toml problems itself, with their location; this setting no longer has an effect."
},
{
"key": "mcpp.toml.diagnostics.unknownKey",
"type": "string",
"default": "warning",
"enum": [
"error",
"warning",
"info",
"off"
],
"scope": "resource",
"group": "toml",
"order": 70,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Set unknown key severity",
"description": "Severity used for keys that mcpp does not recognise.",
"deprecationMessage": "mcpp reports mcpp.toml problems itself, with their location; this setting no longer has an effect."
},
{
"key": "mcpp.toml.diagnostics.planeSeparation",
"type": "string",
"default": "warning",
"enum": [
"error",
"warning",
"info",
"off"
],
"scope": "resource",
"group": "toml",
"order": 80,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Set plane separation severity",
"description": "Severity used when a key is written in the wrong mcpp.toml plane, such as a build key in the library plane.",
"deprecationMessage": "mcpp reports mcpp.toml problems itself, with their location; this setting no longer has an effect."
},
{
"key": "mcpp.toml.diagnostics.legacyKeys",
"type": "string",
"default": "info",
"enum": [
"error",
"warning",
"info",
"off"
],
"scope": "resource",
"group": "toml",
"order": 90,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Set legacy key severity",
"description": "Severity used for pre-0.5 mcpp.toml keys that still work but should be migrated.",
"deprecationMessage": "mcpp reports mcpp.toml problems itself, with their location; this setting no longer has an effect."
},
{
"key": "mcpp.toml.indexCompletion",
"type": "boolean",
"default": false,
"scope": "resource",
"group": "toml",
"order": 100,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Complete dependency versions",
"description": "Query the package index to complete dependency versions. Off by default because it needs network access."
},
{
"key": "mcpp.toml.indexCompletionTimeoutSeconds",
"type": "number",
"default": 20,
"minimum": 1,
"maximum": 600,
"scope": "resource",
"group": "toml",
"order": 110,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Set the index query timeout",
"description": "How long one package index query may run before it is abandoned and completion falls back to local data, in seconds."
},
{
"key": "mcpp.buildScript.intelligence",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "buildScript",
"order": 10,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Enable build.mcpp intelligence",
"description": "Turn completion and hover support for build.mcpp on or off."
},
{
"key": "mcpp.buildScript.diagnostics",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "buildScript",
"order": 20,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Enable build.mcpp diagnostics",
"description": "Validate build.mcpp against the build API mcpp actually ships."
},
{
"key": "mcpp.buildScript.diagnostics.severity",
"type": "string",
"default": "warning",
"enum": [
"warning",
"info",
"off"
],
"scope": "resource",
"group": "buildScript",
"order": 30,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Set build.mcpp diagnostic severity",
"description": "Severity used for build.mcpp diagnostics."
},
{
"key": "mcpp.buildScript.imports.knownModules",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "buildScript",
"order": 40,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Check imported modules",
"description": "Offer mcpp's own modules (std, std.compat, mcpp.*) in import completion. Hover still recognises them, and no import is ever reported missing, whichever way this is set."
},
{
"key": "mcpp.buildScript.snippets",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "buildScript",
"order": 50,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Offer build.mcpp snippets",
"description": "Offer snippet completions for the mcpp build script API."
},
{
"key": "mcpp.cache.statusBar",
"type": "boolean",
"default": false,
"scope": "resource",
"group": "cache",
"order": 10,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Show cache size in status bar",
"description": "Show the size of the mcpp global cache in the status bar. Off by default to keep the status bar quiet."
},
{
"key": "mcpp.cache.warnAboveGiB",
"type": "number",
"default": 0,
"minimum": 0,
"scope": "resource",
"group": "cache",
"order": 20,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Warn above a cache size",
"description": "Warn when the mcpp global cache grows past this many GiB. 0 disables the warning."
},
{
"key": "mcpp.cache.staleDays",
"type": "number",
"default": 3,
"minimum": 0,
"maximum": 365,
"scope": "resource",
"group": "cache",
"order": 30,
"tier": "public",
"applies": "next-clean",
"since": "0.5.0",
"title": "Mark stale cache entries",
"description": "Treat cache entries that were not accessed for this many days as stale. 0 disables the age rule."
},
{
"key": "mcpp.cache.autoRefreshSeconds",
"type": "number",
"default": 0,
"minimum": 0,
"maximum": 3600,
"scope": "resource",
"group": "cache",
"order": 40,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Refresh the cache view automatically",
"description": "Re-read the cache statistics every this many seconds. 0 disables automatic refreshing."
},
{
"key": "mcpp.cache.estimateProjectBytes",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "cache",
"order": 50,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Estimate project artifact size",
"description": "Measure the target directory of the current project so the cache view can show its size."
},
{
"key": "mcpp.cache.showLegacy",
"type": "boolean",
"default": true,
"scope": "resource",
"group": "cache",
"order": 60,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Show legacy cache entries",
"description": "Include cache entries written by older mcpp versions in the cache view and in cleaning."
},
{
"key": "mcpp.cache.gc.defaultBudgetGiB",
"type": "number",
"default": 0,
"minimum": 0,
"scope": "resource",
"group": "cache",
"order": 70,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Set the default cleanup budget",
"description": "Default size budget for cache cleanup, in GiB. 0 asks for a budget on every run."
},
{
"key": "mcpp.cache.gc.confirmAboveGiB",
"type": "number",
"default": 1,
"minimum": 0,
"scope": "resource",
"group": "cache",
"order": 80,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Confirm large cache cleanup",
"description": "Require an extra confirmation when a cleanup would free more than this many GiB. 0 confirms every cleanup."
},
{
"key": "mcpp.cache.pruneAgeDays",
"type": "number",
"default": 30,
"minimum": 1,
"scope": "resource",
"group": "cache",
"order": 90,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Set the pruning age",
"description": "Default age in days used when pruning cache entries older than a threshold."
},
{
"key": "mcpp.views.project.show",
"type": "boolean",
"default": true,
"scope": "window",
"group": "views",
"order": 10,
"tier": "public",
"applies": "view-reload",
"since": "0.5.0",
"title": "Show the project view",
"description": "Show the mcpp project view in the activity bar. Takes effect after the view container reloads."
},
{
"key": "mcpp.views.cache.show",
"type": "boolean",
"default": true,
"scope": "window",
"group": "views",
"order": 20,
"tier": "public",
"applies": "view-reload",
"since": "0.5.0",
"title": "Show the cache view",
"description": "Show the mcpp cache view in the activity bar. Takes effect after the view container reloads."
},
{
"key": "mcpp.views.enabled",
"group": "views",
"tier": "public",
"type": "boolean",
"default": true,
"scope": "window",
"applies": "immediate",
"since": "0.6.0",
"title": "Hide the mcpp view contents",
"description": "Turns every mcpp view off at once. The view contents disappear, so the container shows nothing; whether VS Code also removes the mcpp icon from the activity bar is up to VS Code itself, because an extension cannot mark its container as hidden-when-empty. Right-click the icon to hide it there.",
"order": 30
},
{
"key": "mcpp.views.library.show",
"group": "views",
"tier": "public",
"type": "boolean",
"default": true,
"scope": "window",
"applies": "view-reload",
"since": "0.6.0",
"title": "Show the mcpp library ecosystem view",
"description": "Show the view that browses the package index mcpp has already refreshed locally.",
"order": 40
},
{
"key": "mcpp.library.indexPath",
"group": "views",
"tier": "advanced",
"type": "string",
"default": "",
"scope": "window",
"applies": "immediate",
"since": "0.6.0",
"title": "Path to a mcpp package index checkout",
"description": "Leave empty to browse the official mcpp-index at <mcpp home>/indices/mcpplibs (legacy registry/data/mcpplibs is supported). MCPP_HOME takes precedence; otherwise the extension asks mcpp self env. Set a directory containing pkgs/ or a collection of indexes to browse a custom source.",
"order": 50
},
{
"key": "mcpp.library.networkSearch",
"group": "views",
"tier": "public",
"type": "boolean",
"default": false,
"scope": "window",
"applies": "immediate",
"since": "0.6.0",
"title": "Search every configured registry over the network",
"description": "Off by default. Also searches other registries with mcpp search; remote results have limited previews and cannot be added directly.",
"order": 60
},
{
"key": "mcpp.views.languageServer.show",
"type": "boolean",
"default": true,
"scope": "window",
"group": "views",
"order": 70,
"tier": "public",
"applies": "view-reload",
"since": "0.5.0",
"title": "Show the language-service block in the project view",
"description": "The C++ Modules state is folded into the project view's basic information. The collapsed row always shows a status icon, so a problem is visible without expanding it."
},
{
"key": "mcpp.views.cache.topN",
"type": "number",
"default": 5,
"minimum": 1,
"maximum": 50,
"scope": "window",
"group": "views",
"order": 80,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Set cache list length",
"description": "How many entries the cache view lists per group."
},
{
"key": "mcpp.views.cache.ageBuckets",
"type": "array",
"default": [
"1d",
"7d",
"30d"
],
"scope": "window",
"group": "views",
"order": 90,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Set cache age buckets",
"description": "Age buckets used to group cache entries in the cache view, written as \"1d\", \"7d\" and so on."
},
{
"key": "mcpp.ui.confirmDestructiveOnly",
"type": "boolean",
"default": true,
"scope": "window",
"group": "ui",
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Confirm only destructive actions",
"description": "Use a modal dialogue only for actions that cannot be undone. Turning this off asks for confirmation more often, never less.",
"order": 1
},
{
"key": "mcpp.ui.language",
"type": "string",
"default": "auto",
"enum": [
"auto",
"en",
"zh-cn"
],
"scope": "window",
"group": "ui",
"order": 10,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Set the extension language",
"description": "Language for extension messages and panels. \"auto\" follows VS Code; command titles and settings labels always follow the VS Code display language."
},
{
"key": "mcpp.ui.statusBar.show",
"type": "boolean",
"default": true,
"scope": "window",
"group": "ui",
"order": 20,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Show the mcpp status bar item",
"description": "Show the main mcpp status bar item."
},
{
"key": "mcpp.ui.statusBar.showLanguageServer",
"type": "boolean",
"default": false,
"scope": "window",
"group": "ui",
"order": 30,
"tier": "advanced",
"applies": "immediate",
"since": "0.5.0",
"title": "Show language service status",
"description": "Show the C++ Modules language service state in the mcpp status bar item. Off by default because mcppls already has its own status item."
},
{
"key": "mcpp.ui.statusBar.background",
"type": "string",
"default": "none",
"enum": [
"none",
"warning",
"error"
],
"scope": "window",
"group": "ui",
"order": 40,
"tier": "advanced",
"applies": "immediate",
"since": "0.6.0",
"title": "Highlight the mcpp status bar item",
"description": "VS Code accepts only two background colours for a status bar entry, \"statusBarItem.warningBackground\" and \"statusBarItem.errorBackground\", and it overrides the foreground so the text stays readable; any other colour is dropped. The mcpp item is plain by default; \"warning\" gives it the theme's amber chip and \"error\" its red one."
},
{
"key": "mcpp.ui.notifications.success",
"type": "string",
"default": "statusBar",
"enum": [
"silent",
"statusBar",
"toast"
],
"scope": "window",
"group": "ui",
"order": 50,
"tier": "public",
"applies": "immediate",
"since": "0.5.0",
"title": "Report successful operations",
"description": "How successful mcpp operations are reported: in the status bar only, as a toast, or not at all."
},