@codingame/monaco-editor-wrapper 2.2.0 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index2.js ADDED
@@ -0,0 +1,1325 @@
1
+ import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
2
+ import { IConfigurationService } from 'vscode/services';
3
+ import 'vscode/service-override/configuration';
4
+ import { _ as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
5
+
6
+ var configurationDefaults = {
7
+ "[go]": {
8
+ "editor.insertSpaces": false
9
+ },
10
+ "[javascript]": {
11
+ "editor.maxTokenizationLineLength": 2500
12
+ },
13
+ "[markdown]": {
14
+ "editor.unicodeHighlight.ambiguousCharacters": false,
15
+ "editor.unicodeHighlight.invisibleCharacters": false
16
+ },
17
+ "[shellscript]": {
18
+ "files.eol": "\n"
19
+ },
20
+ "[yaml]": {
21
+ "editor.insertSpaces": true,
22
+ "editor.tabSize": 2,
23
+ "editor.autoIndent": "advanced"
24
+ },
25
+ "[dockercompose]": {
26
+ "editor.insertSpaces": true,
27
+ "editor.tabSize": 2,
28
+ "editor.autoIndent": "advanced"
29
+ },
30
+ "[dart]": {
31
+ "editor.tabSize": 2,
32
+ "editor.insertSpaces": true,
33
+ "editor.detectIndentation": false,
34
+ "editor.suggest.insertMode": "replace",
35
+ "editor.defaultFormatter": "Dart-Code.dart-code"
36
+ },
37
+ "files.watcherExclude": {
38
+ "**/.dart_tool": true
39
+ },
40
+ "explorer.fileNesting.patterns": {
41
+ "pubspec.yaml": "pubspec.lock,pubspec_overrides.yaml,.packages,.flutter-plugins,.flutter-plugins-dependencies,.metadata",
42
+ "*.dart": "${capture}.g.dart"
43
+ },
44
+ "[ocaml]": {
45
+ "editor.tabSize": 2,
46
+ "editor.insertSpaces": true
47
+ },
48
+ "[dune]": {
49
+ "editor.tabSize": 1,
50
+ "editor.insertSpaces": true
51
+ },
52
+ "[dune-project]": {
53
+ "editor.tabSize": 1,
54
+ "editor.insertSpaces": true
55
+ },
56
+ "[dune-workspace]": {
57
+ "editor.tabSize": 1,
58
+ "editor.insertSpaces": true
59
+ },
60
+ "[cram]": {
61
+ "editor.tabSize": 2,
62
+ "editor.insertSpaces": true
63
+ },
64
+ "[scala]": {
65
+ "editor.suggestSelection": "first",
66
+ "editor.formatOnPaste": true,
67
+ "editor.formatOnType": true
68
+ },
69
+ "[COBOL]": {
70
+ "editor.renderIndentGuides": false,
71
+ "editor.rulers": [
72
+ 7,
73
+ 11,
74
+ 72,
75
+ 80
76
+ ]
77
+ },
78
+ "[COBOL Copybook]": {
79
+ "editor.renderIndentGuides": false,
80
+ "editor.rulers": [
81
+ 7,
82
+ 11,
83
+ 72,
84
+ 80
85
+ ]
86
+ },
87
+ "[java]": {
88
+ "editor.suggest.snippetsPreventQuickSuggestions": false
89
+ },
90
+ "[cpp]": {
91
+ "editor.wordBasedSuggestions": false,
92
+ "editor.suggest.insertMode": "replace",
93
+ "editor.semanticHighlighting.enabled": true
94
+ },
95
+ "[cuda-cpp]": {
96
+ "editor.wordBasedSuggestions": false,
97
+ "editor.suggest.insertMode": "replace",
98
+ "editor.semanticHighlighting.enabled": true
99
+ },
100
+ "[c]": {
101
+ "editor.wordBasedSuggestions": false,
102
+ "editor.suggest.insertMode": "replace",
103
+ "editor.semanticHighlighting.enabled": true
104
+ }
105
+ };
106
+ var semanticTokenTypes = [
107
+ {
108
+ id: "annotation",
109
+ superType: "type",
110
+ description: "Style for annotations."
111
+ },
112
+ {
113
+ id: "annotationMember",
114
+ superType: "method",
115
+ description: "Style for annotation members."
116
+ },
117
+ {
118
+ id: "modifier",
119
+ superType: "keyword",
120
+ description: "Style for modifier keywords."
121
+ },
122
+ {
123
+ id: "record",
124
+ superType: "class",
125
+ description: "Style for records."
126
+ },
127
+ {
128
+ id: "recordComponent",
129
+ superType: "parameter",
130
+ description: "Style for record components."
131
+ },
132
+ {
133
+ id: "referenceType",
134
+ superType: "class",
135
+ description: "Style for C++/CLI reference types."
136
+ },
137
+ {
138
+ id: "cliProperty",
139
+ superType: "property",
140
+ description: "Style for C++/CLI properties."
141
+ },
142
+ {
143
+ id: "genericType",
144
+ superType: "class",
145
+ description: "Style for C++/CLI generic types."
146
+ },
147
+ {
148
+ id: "valueType",
149
+ superType: "class",
150
+ description: "Style for C++/CLI value types."
151
+ },
152
+ {
153
+ id: "templateFunction",
154
+ superType: "function",
155
+ description: "Style for C++ template functions."
156
+ },
157
+ {
158
+ id: "templateType",
159
+ superType: "class",
160
+ description: "Style for C++ template types."
161
+ },
162
+ {
163
+ id: "operatorOverload",
164
+ superType: "operator",
165
+ description: "Style for C++ overloaded operators."
166
+ },
167
+ {
168
+ id: "memberOperatorOverload",
169
+ superType: "operator",
170
+ description: "Style for C++ overloaded operator member functions."
171
+ },
172
+ {
173
+ id: "newOperator",
174
+ superType: "operator",
175
+ description: "Style for C++ `new` or `delete` operators."
176
+ },
177
+ {
178
+ id: "customLiteral",
179
+ superType: "number",
180
+ description: "Style for C++ user-defined literals."
181
+ },
182
+ {
183
+ id: "numberLiteral",
184
+ superType: "number",
185
+ description: "Style for C++ user-defined literal numbers."
186
+ },
187
+ {
188
+ id: "stringLiteral",
189
+ superType: "string",
190
+ description: "Style for C++ user-defined literal strings."
191
+ },
192
+ {
193
+ id: "razorTagHelperElement",
194
+ description: "A Razor TagHelper Element"
195
+ },
196
+ {
197
+ id: "razorTagHelperAttribute",
198
+ description: "A Razor TagHelper Attribute"
199
+ },
200
+ {
201
+ id: "razorTransition",
202
+ description: "A Razor transition"
203
+ },
204
+ {
205
+ id: "razorDirectiveAttribute",
206
+ description: "A Razor Directive Attribute"
207
+ },
208
+ {
209
+ id: "razorDirectiveColon",
210
+ description: "A colon between directive attribute parameters"
211
+ },
212
+ {
213
+ id: "razorDirective",
214
+ description: "A Razor directive such as 'code' or 'function'"
215
+ },
216
+ {
217
+ id: "razorComment",
218
+ description: "A Razor comment"
219
+ },
220
+ {
221
+ id: "markupCommentPunctuation",
222
+ description: "The '@' or '*' of a Razor comment."
223
+ },
224
+ {
225
+ id: "markupTagDelimiter",
226
+ description: "Markup delimiters like '<', '>', and '/'."
227
+ },
228
+ {
229
+ id: "markupOperator",
230
+ description: "Delimiter for Markup Attribute Key-Value pairs."
231
+ },
232
+ {
233
+ id: "markupElement",
234
+ description: "The name of a Markup element."
235
+ },
236
+ {
237
+ id: "markupAttribute",
238
+ description: "The name of a Markup attribute."
239
+ },
240
+ {
241
+ id: "markupComment",
242
+ description: "The contents of a Markup comment."
243
+ },
244
+ {
245
+ id: "markupCommentPunctuation",
246
+ description: "The begining or ending punctuation of a Markup comment."
247
+ },
248
+ {
249
+ id: "plainKeyword",
250
+ description: "Represents a keyword"
251
+ },
252
+ {
253
+ id: "controlKeyword",
254
+ description: "Represents a control-flow keyword"
255
+ },
256
+ {
257
+ id: "operatorOverloaded",
258
+ description: "Represents a custom implementation of an operator"
259
+ },
260
+ {
261
+ id: "preprocessorKeyword",
262
+ description: "Represents"
263
+ },
264
+ {
265
+ id: "preprocessorText",
266
+ description: "Represents"
267
+ },
268
+ {
269
+ id: "excludedCode",
270
+ description: ""
271
+ },
272
+ {
273
+ id: "punctuation",
274
+ description: ""
275
+ },
276
+ {
277
+ id: "stringVerbatim",
278
+ description: ""
279
+ },
280
+ {
281
+ id: "stringEscapeCharacter",
282
+ description: ""
283
+ },
284
+ {
285
+ id: "delegate",
286
+ description: ""
287
+ },
288
+ {
289
+ id: "module",
290
+ description: ""
291
+ },
292
+ {
293
+ id: "extensionMethod",
294
+ description: ""
295
+ },
296
+ {
297
+ id: "field",
298
+ description: ""
299
+ },
300
+ {
301
+ id: "local",
302
+ description: ""
303
+ },
304
+ {
305
+ id: "xmlDocCommentAttributeName",
306
+ description: ""
307
+ },
308
+ {
309
+ id: "xmlDocCommentAttributeQuotes",
310
+ description: ""
311
+ },
312
+ {
313
+ id: "xmlDocCommentAttributeValue",
314
+ description: ""
315
+ },
316
+ {
317
+ id: "xmlDocCommentCDataSection",
318
+ description: ""
319
+ },
320
+ {
321
+ id: "xmlDocCommentComment",
322
+ description: ""
323
+ },
324
+ {
325
+ id: "xmlDocCommentDelimiter",
326
+ description: ""
327
+ },
328
+ {
329
+ id: "xmlDocCommentEntityReference",
330
+ description: ""
331
+ },
332
+ {
333
+ id: "xmlDocCommentName",
334
+ description: ""
335
+ },
336
+ {
337
+ id: "xmlDocCommentProcessingInstruction",
338
+ description: ""
339
+ },
340
+ {
341
+ id: "xmlDocCommentText",
342
+ description: ""
343
+ },
344
+ {
345
+ id: "regexComment",
346
+ description: ""
347
+ },
348
+ {
349
+ id: "regexCharacterClass",
350
+ description: ""
351
+ },
352
+ {
353
+ id: "regexAnchor",
354
+ description: ""
355
+ },
356
+ {
357
+ id: "regexQuantifier",
358
+ description: ""
359
+ },
360
+ {
361
+ id: "regexGrouping",
362
+ description: ""
363
+ },
364
+ {
365
+ id: "regexAlternation",
366
+ description: ""
367
+ },
368
+ {
369
+ id: "regexSelfEscapedCharacter",
370
+ description: ""
371
+ },
372
+ {
373
+ id: "regexOtherEscape",
374
+ description: ""
375
+ }
376
+ ];
377
+ var semanticTokenScopes = [
378
+ {
379
+ language: "javascript",
380
+ scopes: {
381
+ property: [
382
+ "variable.other.property.js"
383
+ ],
384
+ "property.readonly": [
385
+ "variable.other.constant.property.js"
386
+ ],
387
+ variable: [
388
+ "variable.other.readwrite.js"
389
+ ],
390
+ "variable.readonly": [
391
+ "variable.other.constant.object.js"
392
+ ],
393
+ "function": [
394
+ "entity.name.function.js"
395
+ ],
396
+ namespace: [
397
+ "entity.name.type.module.js"
398
+ ],
399
+ "variable.defaultLibrary": [
400
+ "support.variable.js"
401
+ ],
402
+ "function.defaultLibrary": [
403
+ "support.function.js"
404
+ ]
405
+ }
406
+ },
407
+ {
408
+ language: "javascriptreact",
409
+ scopes: {
410
+ property: [
411
+ "variable.other.property.jsx"
412
+ ],
413
+ "property.readonly": [
414
+ "variable.other.constant.property.jsx"
415
+ ],
416
+ variable: [
417
+ "variable.other.readwrite.jsx"
418
+ ],
419
+ "variable.readonly": [
420
+ "variable.other.constant.object.jsx"
421
+ ],
422
+ "function": [
423
+ "entity.name.function.jsx"
424
+ ],
425
+ namespace: [
426
+ "entity.name.type.module.jsx"
427
+ ],
428
+ "variable.defaultLibrary": [
429
+ "support.variable.js"
430
+ ],
431
+ "function.defaultLibrary": [
432
+ "support.function.js"
433
+ ]
434
+ }
435
+ },
436
+ {
437
+ language: "typescript",
438
+ scopes: {
439
+ property: [
440
+ "variable.other.property.ts"
441
+ ],
442
+ "property.readonly": [
443
+ "variable.other.constant.property.ts"
444
+ ],
445
+ variable: [
446
+ "variable.other.readwrite.ts"
447
+ ],
448
+ "variable.readonly": [
449
+ "variable.other.constant.object.ts"
450
+ ],
451
+ "function": [
452
+ "entity.name.function.ts"
453
+ ],
454
+ namespace: [
455
+ "entity.name.type.module.ts"
456
+ ],
457
+ "variable.defaultLibrary": [
458
+ "support.variable.ts"
459
+ ],
460
+ "function.defaultLibrary": [
461
+ "support.function.ts"
462
+ ]
463
+ }
464
+ },
465
+ {
466
+ language: "typescriptreact",
467
+ scopes: {
468
+ property: [
469
+ "variable.other.property.tsx"
470
+ ],
471
+ "property.readonly": [
472
+ "variable.other.constant.property.tsx"
473
+ ],
474
+ variable: [
475
+ "variable.other.readwrite.tsx"
476
+ ],
477
+ "variable.readonly": [
478
+ "variable.other.constant.object.tsx"
479
+ ],
480
+ "function": [
481
+ "entity.name.function.tsx"
482
+ ],
483
+ namespace: [
484
+ "entity.name.type.module.tsx"
485
+ ],
486
+ "variable.defaultLibrary": [
487
+ "support.variable.tsx"
488
+ ],
489
+ "function.defaultLibrary": [
490
+ "support.function.tsx"
491
+ ]
492
+ }
493
+ },
494
+ {
495
+ language: "dart",
496
+ scopes: {
497
+ annotation: [
498
+ "variable"
499
+ ],
500
+ keyword: [
501
+ "keyword"
502
+ ],
503
+ "keyword.control": [
504
+ "keyword.control"
505
+ ],
506
+ "string.escape": [
507
+ "constant.character.escape"
508
+ ],
509
+ source: [
510
+ "meta.embedded"
511
+ ]
512
+ }
513
+ },
514
+ {
515
+ language: "java",
516
+ scopes: {
517
+ annotation: [
518
+ "storage.type.annotation.java"
519
+ ],
520
+ annotationMember: [
521
+ "entity.name.annotationMember.java",
522
+ "constant.other.key.java"
523
+ ],
524
+ modifier: [
525
+ "storage.modifier.java"
526
+ ],
527
+ "keyword.documentation": [
528
+ "keyword.other.documentation.javadoc.java"
529
+ ],
530
+ "*.constructor": [
531
+ "entity.name.function.java"
532
+ ]
533
+ }
534
+ },
535
+ {
536
+ language: "lua",
537
+ scopes: {
538
+ "class": [
539
+ "support.class.lua"
540
+ ],
541
+ "class.declaration": [
542
+ "support.class.lua"
543
+ ],
544
+ "comment.documentation": [
545
+ "storage.type.annotation.lua"
546
+ ],
547
+ "event.static": [
548
+ "support.class.lua"
549
+ ],
550
+ "function": [
551
+ "support.function.any-method.lua"
552
+ ],
553
+ "function.declaration": [
554
+ "entity.name.function.lua"
555
+ ],
556
+ "function.defaultLibrary": [
557
+ "support.function.lua"
558
+ ],
559
+ "function.static": [
560
+ "entity.name.function.lua"
561
+ ],
562
+ keyword: [
563
+ "keyword.control.lua"
564
+ ],
565
+ "keyword.async": [
566
+ "entity.name.tag.lua"
567
+ ],
568
+ "keyword.declaration": [
569
+ "keyword.local.lua"
570
+ ],
571
+ "keyword.documentation": [
572
+ "storage.type.annotation.lua"
573
+ ],
574
+ "keyword.readonly": [
575
+ "constant.language.lua"
576
+ ],
577
+ macro: [
578
+ "variable.lua"
579
+ ],
580
+ method: [
581
+ "entity.name.function.lua"
582
+ ],
583
+ "method.declaration": [
584
+ "entity.name.function.lua"
585
+ ],
586
+ number: [
587
+ "constant.numeric.float.lua"
588
+ ],
589
+ "number.static": [
590
+ "constant.numeric.integer.lua"
591
+ ],
592
+ operator: [
593
+ "keyword.operator.lua"
594
+ ],
595
+ "parameter.declaration": [
596
+ "variable.parameter.lua"
597
+ ],
598
+ property: [
599
+ "entity.other.attribute.lua"
600
+ ],
601
+ "property.declaration": [
602
+ "entity.other.property.lua"
603
+ ],
604
+ string: [
605
+ "string.lua"
606
+ ],
607
+ "string.deprecated": [
608
+ "invalid.illegal.character.escape.lua"
609
+ ],
610
+ "string.modification": [
611
+ "constant.character.escape.lua"
612
+ ],
613
+ struct: [
614
+ "string.tag.lua"
615
+ ],
616
+ "struct.declaration": [
617
+ "string.tag.lua"
618
+ ],
619
+ type: [
620
+ "support.type.lua"
621
+ ],
622
+ "type.modification": [
623
+ "storage.type.generic.lua"
624
+ ],
625
+ typeParameter: [
626
+ "string.tag.lua"
627
+ ],
628
+ variable: [
629
+ "variable.other.lua"
630
+ ],
631
+ "variable.abstract": [
632
+ "variable.other.constant.lua"
633
+ ],
634
+ "variable.declaration": [
635
+ "variable.other.lua"
636
+ ],
637
+ "variable.defaultLibrary": [
638
+ "support.constant.lua"
639
+ ],
640
+ "variable.definition": [
641
+ "variable.language.self.lua"
642
+ ],
643
+ "variable.readonly": [
644
+ "variable.other.constant.lua"
645
+ ],
646
+ "variable.static": [
647
+ "variable.global.lua"
648
+ ]
649
+ }
650
+ },
651
+ {
652
+ language: "c",
653
+ scopes: {
654
+ namespace: [
655
+ "entity.name.namespace.c"
656
+ ],
657
+ type: [
658
+ "entity.name.type.c"
659
+ ],
660
+ "type.defaultLibrary": [
661
+ "support.type.c"
662
+ ],
663
+ struct: [
664
+ "storage.type.struct.c"
665
+ ],
666
+ "class": [
667
+ "entity.name.type.class.c"
668
+ ],
669
+ "class.defaultLibrary": [
670
+ "support.class.c"
671
+ ],
672
+ "interface": [
673
+ "entity.name.type.interface.c"
674
+ ],
675
+ "enum": [
676
+ "entity.name.type.enum.c"
677
+ ],
678
+ "function": [
679
+ "entity.name.function.c"
680
+ ],
681
+ "function.defaultLibrary": [
682
+ "support.function.c"
683
+ ],
684
+ method: [
685
+ "entity.name.function.member.c"
686
+ ],
687
+ variable: [
688
+ "variable.other.readwrite.c",
689
+ "entity.name.variable.c"
690
+ ],
691
+ "variable.readonly": [
692
+ "variable.other.constant.c"
693
+ ],
694
+ "variable.readonly.defaultLibrary": [
695
+ "support.constant.c"
696
+ ],
697
+ parameter: [
698
+ "variable.parameter.c"
699
+ ],
700
+ property: [
701
+ "variable.other.property.c"
702
+ ],
703
+ "property.readonly": [
704
+ "variable.other.constant.property.c"
705
+ ],
706
+ enumMember: [
707
+ "variable.other.enummember.c"
708
+ ],
709
+ event: [
710
+ "variable.other.event.c"
711
+ ],
712
+ label: [
713
+ "entity.name.label.c"
714
+ ],
715
+ "variable.global": [
716
+ "variable.other.global.c"
717
+ ],
718
+ "variable.local": [
719
+ "variable.other.local.c"
720
+ ],
721
+ "property.static": [
722
+ "variable.other.property.static.c"
723
+ ],
724
+ "method.static": [
725
+ "entity.name.function.member.static.c"
726
+ ],
727
+ macro: [
728
+ "entity.name.function.preprocessor.c",
729
+ "entity.name.function.macro.c"
730
+ ],
731
+ referenceType: [
732
+ "entity.name.type.class.reference.c"
733
+ ],
734
+ cliProperty: [
735
+ "variable.other.property.cli.c"
736
+ ],
737
+ genericType: [
738
+ "entity.name.type.class.generic.c"
739
+ ],
740
+ valueType: [
741
+ "entity.name.type.class.value.c"
742
+ ],
743
+ templateFunction: [
744
+ "entity.name.function.templated.c"
745
+ ],
746
+ templateType: [
747
+ "entity.name.type.class.templated.c"
748
+ ],
749
+ operatorOverload: [
750
+ "entity.name.function.operator.c"
751
+ ],
752
+ memberOperatorOverload: [
753
+ "entity.name.function.operator.member.c"
754
+ ],
755
+ newOperator: [
756
+ "keyword.operator.new.c"
757
+ ],
758
+ numberLiteral: [
759
+ "entity.name.operator.custom-literal.number.c"
760
+ ],
761
+ customLiteral: [
762
+ "entity.name.operator.custom-literal.c"
763
+ ],
764
+ stringLiteral: [
765
+ "entity.name.operator.custom-literal.string.c"
766
+ ]
767
+ }
768
+ },
769
+ {
770
+ language: "cpp",
771
+ scopes: {
772
+ namespace: [
773
+ "entity.name.namespace.cpp"
774
+ ],
775
+ type: [
776
+ "entity.name.type.cpp"
777
+ ],
778
+ "type.defaultLibrary": [
779
+ "support.type.cpp"
780
+ ],
781
+ struct: [
782
+ "storage.type.struct.cpp"
783
+ ],
784
+ "class": [
785
+ "entity.name.type.class.cpp"
786
+ ],
787
+ "class.defaultLibrary": [
788
+ "support.class.cpp"
789
+ ],
790
+ "interface": [
791
+ "entity.name.type.interface.cpp"
792
+ ],
793
+ "enum": [
794
+ "entity.name.type.enum.cpp"
795
+ ],
796
+ "function": [
797
+ "entity.name.function.cpp"
798
+ ],
799
+ "function.defaultLibrary": [
800
+ "support.function.cpp"
801
+ ],
802
+ method: [
803
+ "entity.name.function.member.cpp"
804
+ ],
805
+ variable: [
806
+ "variable.other.readwrite.cpp",
807
+ "entity.name.variable.cpp"
808
+ ],
809
+ "variable.readonly": [
810
+ "variable.other.constant.cpp"
811
+ ],
812
+ "variable.readonly.defaultLibrary": [
813
+ "support.constant.cpp"
814
+ ],
815
+ parameter: [
816
+ "variable.parameter.cpp"
817
+ ],
818
+ property: [
819
+ "variable.other.property.cpp"
820
+ ],
821
+ "property.readonly": [
822
+ "variable.other.constant.property.cpp"
823
+ ],
824
+ enumMember: [
825
+ "variable.other.enummember.cpp"
826
+ ],
827
+ event: [
828
+ "variable.other.event.cpp"
829
+ ],
830
+ label: [
831
+ "entity.name.label.cpp"
832
+ ],
833
+ "variable.global": [
834
+ "variable.other.global.cpp"
835
+ ],
836
+ "variable.local": [
837
+ "variable.other.local.cpp"
838
+ ],
839
+ "property.static": [
840
+ "variable.other.property.static.cpp"
841
+ ],
842
+ "method.static": [
843
+ "entity.name.function.member.static.cpp"
844
+ ],
845
+ macro: [
846
+ "entity.name.function.preprocessor.cpp",
847
+ "entity.name.function.macro.cpp"
848
+ ],
849
+ referenceType: [
850
+ "entity.name.type.class.reference.cpp"
851
+ ],
852
+ cliProperty: [
853
+ "variable.other.property.cli.cpp"
854
+ ],
855
+ genericType: [
856
+ "entity.name.type.class.generic.cpp"
857
+ ],
858
+ valueType: [
859
+ "entity.name.type.class.value.cpp"
860
+ ],
861
+ templateFunction: [
862
+ "entity.name.function.templated.cpp"
863
+ ],
864
+ templateType: [
865
+ "entity.name.type.class.templated.cpp"
866
+ ],
867
+ operatorOverload: [
868
+ "entity.name.function.operator.cpp"
869
+ ],
870
+ memberOperatorOverload: [
871
+ "entity.name.function.operator.member.cpp"
872
+ ],
873
+ newOperator: [
874
+ "keyword.operator.new.cpp"
875
+ ],
876
+ numberLiteral: [
877
+ "entity.name.operator.custom-literal.number.cpp"
878
+ ],
879
+ customLiteral: [
880
+ "entity.name.operator.custom-literal.cpp"
881
+ ],
882
+ stringLiteral: [
883
+ "entity.name.operator.custom-literal.string.cpp"
884
+ ]
885
+ }
886
+ },
887
+ {
888
+ language: "cuda-cpp",
889
+ scopes: {
890
+ namespace: [
891
+ "entity.name.namespace.cuda-cpp"
892
+ ],
893
+ type: [
894
+ "entity.name.type.cuda-cpp"
895
+ ],
896
+ "type.defaultLibrary": [
897
+ "support.type.cuda-cpp"
898
+ ],
899
+ struct: [
900
+ "storage.type.struct.cuda-cpp"
901
+ ],
902
+ "class": [
903
+ "entity.name.type.class.cuda-cpp"
904
+ ],
905
+ "class.defaultLibrary": [
906
+ "support.class.cuda-cpp"
907
+ ],
908
+ "interface": [
909
+ "entity.name.type.interface.cuda-cpp"
910
+ ],
911
+ "enum": [
912
+ "entity.name.type.enum.cuda-cpp"
913
+ ],
914
+ "function": [
915
+ "entity.name.function.cuda-cpp"
916
+ ],
917
+ "function.defaultLibrary": [
918
+ "support.function.cuda-cpp"
919
+ ],
920
+ method: [
921
+ "entity.name.function.member.cuda-cpp"
922
+ ],
923
+ variable: [
924
+ "variable.other.readwrite.cuda-cpp",
925
+ "entity.name.variable.cuda-cpp"
926
+ ],
927
+ "variable.readonly": [
928
+ "variable.other.constant.cuda-cpp"
929
+ ],
930
+ "variable.readonly.defaultLibrary": [
931
+ "support.constant.cuda-cpp"
932
+ ],
933
+ parameter: [
934
+ "variable.parameter.cuda-cpp"
935
+ ],
936
+ property: [
937
+ "variable.other.property.cuda-cpp"
938
+ ],
939
+ "property.readonly": [
940
+ "variable.other.constant.property.cuda-cpp"
941
+ ],
942
+ enumMember: [
943
+ "variable.other.enummember.cuda-cpp"
944
+ ],
945
+ event: [
946
+ "variable.other.event.cuda-cpp"
947
+ ],
948
+ label: [
949
+ "entity.name.label.cuda-cpp"
950
+ ],
951
+ "variable.global": [
952
+ "variable.other.global.cuda-cpp"
953
+ ],
954
+ "variable.local": [
955
+ "variable.other.local.cuda-cpp"
956
+ ],
957
+ "property.static": [
958
+ "variable.other.property.static.cuda-cpp"
959
+ ],
960
+ "method.static": [
961
+ "entity.name.function.member.static.cuda-cpp"
962
+ ],
963
+ macro: [
964
+ "entity.name.function.preprocessor.cuda-cpp",
965
+ "entity.name.function.macro.cuda-cpp"
966
+ ],
967
+ referenceType: [
968
+ "entity.name.type.class.reference.cuda-cpp"
969
+ ],
970
+ cliProperty: [
971
+ "variable.other.property.cli.cuda-cpp"
972
+ ],
973
+ genericType: [
974
+ "entity.name.type.class.generic.cuda-cpp"
975
+ ],
976
+ valueType: [
977
+ "entity.name.type.class.value.cuda-cpp"
978
+ ],
979
+ templateFunction: [
980
+ "entity.name.function.templated.cuda-cpp"
981
+ ],
982
+ templateType: [
983
+ "entity.name.type.class.templated.cuda-cpp"
984
+ ],
985
+ operatorOverload: [
986
+ "entity.name.function.operator.cuda-cpp"
987
+ ],
988
+ memberOperatorOverload: [
989
+ "entity.name.function.operator.member.cuda-cpp"
990
+ ],
991
+ newOperator: [
992
+ "keyword.operator.new.cuda-cpp"
993
+ ],
994
+ numberLiteral: [
995
+ "entity.name.operator.custom-literal.number.cuda-cpp"
996
+ ],
997
+ customLiteral: [
998
+ "entity.name.operator.custom-literal.cuda-cpp"
999
+ ],
1000
+ stringLiteral: [
1001
+ "entity.name.operator.custom-literal.string.cuda-cpp"
1002
+ ]
1003
+ }
1004
+ },
1005
+ {
1006
+ language: "aspnetcorerazor",
1007
+ scopes: {
1008
+ razorTagHelperElement: [
1009
+ "entity.name.class.element.taghelper"
1010
+ ],
1011
+ razorTagHelperAttribute: [
1012
+ "entity.name.class.attribute.taghelper"
1013
+ ],
1014
+ razorTransition: [
1015
+ "keyword.control.razor.transition"
1016
+ ],
1017
+ razorDirectiveAttribute: [
1018
+ "keyword.control.razor.directive.attribute",
1019
+ "keyword.control.cshtml.directive.attribute"
1020
+ ],
1021
+ razorDirectiveColon: [
1022
+ "keyword.control.razor.directive.colon",
1023
+ "keyword.control.cshtml.directive.colon"
1024
+ ],
1025
+ razorDirective: [
1026
+ "keyword.control.razor.directive",
1027
+ "keyword.control.cshtml.directive"
1028
+ ],
1029
+ razorComment: [
1030
+ "comment.block.razor"
1031
+ ],
1032
+ razorCommentTransition: [
1033
+ "meta.comment.razor",
1034
+ "keyword.control.cshtml.transition"
1035
+ ],
1036
+ razorCommentStar: [
1037
+ "keyword.control.razor.comment.star",
1038
+ "meta.comment.razor"
1039
+ ],
1040
+ angleBracket: [
1041
+ "punctuation.definition.tag"
1042
+ ],
1043
+ forwardSlash: [
1044
+ "punctuation.definition.tag"
1045
+ ],
1046
+ equals: [
1047
+ "punctuation.separator.key-value.html"
1048
+ ],
1049
+ markupElement: [
1050
+ "entity.name.tag.html"
1051
+ ],
1052
+ markupAttribute: [
1053
+ "entity.other.attribute-name.html"
1054
+ ],
1055
+ markupComment: [
1056
+ "comment.block.html"
1057
+ ],
1058
+ markupCommentPunctuation: [
1059
+ "punctuation.definition.comment.html",
1060
+ "comment.block.html"
1061
+ ]
1062
+ }
1063
+ },
1064
+ {
1065
+ language: "csharp",
1066
+ scopes: {
1067
+ plainKeyword: [
1068
+ "keyword.cs"
1069
+ ],
1070
+ controlKeyword: [
1071
+ "keyword.control.cs"
1072
+ ],
1073
+ operatorOverloaded: [
1074
+ "entity.name.function.member.overload.cs"
1075
+ ],
1076
+ preprocessorKeyword: [
1077
+ "keyword.preprocessor.cs"
1078
+ ],
1079
+ preprocessorText: [
1080
+ "meta.preprocessor.string.cs"
1081
+ ],
1082
+ excludedCode: [
1083
+ "support.other.excluded.cs"
1084
+ ],
1085
+ punctuation: [
1086
+ "punctuation.cs"
1087
+ ],
1088
+ stringVerbatim: [
1089
+ "string.verbatim.cs"
1090
+ ],
1091
+ stringEscapeCharacter: [
1092
+ "constant.character.escape.cs"
1093
+ ],
1094
+ delegate: [
1095
+ "entity.name.type.delegate.cs"
1096
+ ],
1097
+ module: [
1098
+ "entity.name.type.module.cs"
1099
+ ],
1100
+ extensionMethod: [
1101
+ "entity.name.function.extension.cs"
1102
+ ],
1103
+ field: [
1104
+ "entity.name.variable.field.cs"
1105
+ ],
1106
+ local: [
1107
+ "entity.name.variable.local.cs"
1108
+ ],
1109
+ xmlDocCommentAttributeName: [
1110
+ "comment.documentation.attribute.name.cs"
1111
+ ],
1112
+ xmlDocCommentAttributeQuotes: [
1113
+ "comment.documentation.attribute.quotes.cs"
1114
+ ],
1115
+ xmlDocCommentAttributeValue: [
1116
+ "comment.documentation.attribute.value.cs"
1117
+ ],
1118
+ xmlDocCommentCDataSection: [
1119
+ "comment.documentation.cdata.cs"
1120
+ ],
1121
+ xmlDocCommentComment: [
1122
+ "comment.documentation.comment.cs"
1123
+ ],
1124
+ xmlDocCommentDelimiter: [
1125
+ "comment.documentation.delimiter.cs"
1126
+ ],
1127
+ xmlDocCommentEntityReference: [
1128
+ "comment.documentation.entityReference.cs"
1129
+ ],
1130
+ xmlDocCommentName: [
1131
+ "comment.documentation.name.cs"
1132
+ ],
1133
+ xmlDocCommentProcessingInstruction: [
1134
+ "comment.documentation.processingInstruction.cs"
1135
+ ],
1136
+ xmlDocCommentText: [
1137
+ "comment.documentation.cs"
1138
+ ],
1139
+ regexComment: [
1140
+ "string.regexp.comment.cs"
1141
+ ],
1142
+ regexCharacterClass: [
1143
+ "constant.character.character-class.regexp.cs"
1144
+ ],
1145
+ regexAnchor: [
1146
+ "keyword.control.anchor.regexp.cs"
1147
+ ],
1148
+ regexQuantifier: [
1149
+ "keyword.operator.quantifier.regexp.cs"
1150
+ ],
1151
+ regexGrouping: [
1152
+ "punctuation.definition.group.regexp.cs"
1153
+ ],
1154
+ regexAlternation: [
1155
+ "keyword.operator.or.regexp.cs"
1156
+ ],
1157
+ regexSelfEscapedCharacter: [
1158
+ "string.regexp.self-escaped-character.cs"
1159
+ ],
1160
+ regexOtherEscape: [
1161
+ "string.regexp.other-escape.cs"
1162
+ ]
1163
+ }
1164
+ },
1165
+ {
1166
+ scopes: {
1167
+ "property.refValue": [
1168
+ "entity.name.function"
1169
+ ]
1170
+ }
1171
+ }
1172
+ ];
1173
+ var semanticTokenModifiers = [
1174
+ {
1175
+ id: "public",
1176
+ description: "Style for symbols with the public access modifier."
1177
+ },
1178
+ {
1179
+ id: "private",
1180
+ description: "Style for symbols with the private access modifier."
1181
+ },
1182
+ {
1183
+ id: "protected",
1184
+ description: "Style for symbols with the protected access modifier."
1185
+ },
1186
+ {
1187
+ id: "native",
1188
+ description: "Style for symbols with the native modifier."
1189
+ },
1190
+ {
1191
+ id: "generic",
1192
+ description: "Style for symbols that are generic (have type parameters)."
1193
+ },
1194
+ {
1195
+ id: "typeArgument",
1196
+ description: "Style for symbols that are type arguments for a generic symbol."
1197
+ },
1198
+ {
1199
+ id: "importDeclaration",
1200
+ description: "Style for symbols that are part of an import declaration."
1201
+ },
1202
+ {
1203
+ id: "constructor",
1204
+ description: "Style for symbols that are constructors."
1205
+ },
1206
+ {
1207
+ id: "global",
1208
+ description: "Style to use for symbols that are global."
1209
+ },
1210
+ {
1211
+ id: "local",
1212
+ description: "Style to use for symbols that are local."
1213
+ }
1214
+ ];
1215
+ var extensions = {
1216
+ configurationDefaults: configurationDefaults,
1217
+ semanticTokenTypes: semanticTokenTypes,
1218
+ semanticTokenScopes: semanticTokenScopes,
1219
+ semanticTokenModifiers: semanticTokenModifiers
1220
+ };
1221
+
1222
+ const configurationRegistry$1 = monaco.extra.Registry.as(monaco.extra.ConfigurationExtensions.Configuration);
1223
+ /**
1224
+ * comes from https://github.com/microsoft/vscode/blob/16d0a319b28caa4b6cf4e6801fd508282b7533e0/src/vs/workbench/contrib/files/browser/files.contribution.ts#L132
1225
+ * files.exclude and files.associations are required by the Lua language server
1226
+ */
1227
+
1228
+ const FILES_EXCLUDE_CONFIG = 'files.exclude';
1229
+ const FILES_ASSOCIATIONS_CONFIG = 'files.associations';
1230
+ const ConfigurationScope = monaco.extra.ConfigurationScope;
1231
+ const nls = {
1232
+ localize: (key, defaultValue) => defaultValue
1233
+ };
1234
+ configurationRegistry$1.registerConfiguration({
1235
+ id: 'files',
1236
+ order: 9,
1237
+ title: 'Files',
1238
+ type: 'object',
1239
+ properties: {
1240
+ 'files.eol': {
1241
+ type: 'string',
1242
+ enum: ['\n', '\r\n', 'auto'],
1243
+ enumDescriptions: [nls.localize('eol.LF', 'LF'), nls.localize('eol.CRLF', 'CRLF'), nls.localize('eol.auto', 'Uses operating system specific end of line character.')],
1244
+ default: 'auto',
1245
+ description: nls.localize('eol', 'The default end of line character.'),
1246
+ scope: ConfigurationScope.LANGUAGE_OVERRIDABLE
1247
+ },
1248
+ [FILES_EXCLUDE_CONFIG]: {
1249
+ type: 'object',
1250
+ markdownDescription: nls.localize('exclude', 'Configure glob patterns for excluding files and folders. For example, the file Explorer decides which files and folders to show or hide based on this setting. Refer to the `#search.exclude#` setting to define search specific excludes. Read more about glob patterns [here](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options).'),
1251
+ default: _objectSpread2(_objectSpread2({}, {
1252
+ '**/.git': true,
1253
+ '**/.svn': true,
1254
+ '**/.hg': true,
1255
+ '**/CVS': true,
1256
+ '**/.DS_Store': true,
1257
+ '**/Thumbs.db': true
1258
+ }), {
1259
+ '**/*.crswap': true
1260
+ /* filter out swap files used for local file access */
1261
+
1262
+ } ),
1263
+ scope: ConfigurationScope.RESOURCE,
1264
+ additionalProperties: {
1265
+ anyOf: [{
1266
+ type: 'boolean',
1267
+ description: nls.localize('files.exclude.boolean', 'The glob pattern to match file paths against. Set to true or false to enable or disable the pattern.')
1268
+ }, {
1269
+ type: 'object',
1270
+ properties: {
1271
+ when: {
1272
+ type: 'string',
1273
+ // expression ({ "**/*.js": { "when": "$(basename).js" } })
1274
+ pattern: '\\w*\\$\\(basename\\)\\w*',
1275
+ default: '$(basename).ext',
1276
+ description: nls.localize('files.exclude.when', 'Additional check on the siblings of a matching file. Use $(basename) as variable for the matching file name.')
1277
+ }
1278
+ }
1279
+ }]
1280
+ }
1281
+ },
1282
+ [FILES_ASSOCIATIONS_CONFIG]: {
1283
+ type: 'object',
1284
+ markdownDescription: nls.localize('associations', 'Configure file associations to languages (e.g. `"*.extension": "html"`). These have precedence over the default associations of the languages installed.'),
1285
+ additionalProperties: {
1286
+ type: 'string'
1287
+ }
1288
+ }
1289
+ }
1290
+ });
1291
+
1292
+ const configurationRegistry = monaco.extra.Registry.as(monaco.extra.ConfigurationExtensions.Configuration);
1293
+ configurationRegistry.registerDefaultConfigurations([{
1294
+ overrides: {
1295
+ 'editor.codeLens': false,
1296
+ 'editor.fontSize': 12,
1297
+ 'editor.maxTokenizationLineLength': 1000,
1298
+ 'editor.quickSuggestions': false,
1299
+ 'files.eol': '\n'
1300
+ }
1301
+ }]);
1302
+ configurationRegistry.registerDefaultConfigurations([{
1303
+ overrides: extensions.configurationDefaults
1304
+ }]);
1305
+ function onConfigurationChanged(listener) {
1306
+ const configurationService = monaco.extra.StandaloneServices.get(IConfigurationService);
1307
+ return configurationService.onDidChangeConfiguration(listener);
1308
+ }
1309
+ function getConfiguration(language) {
1310
+ let section = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'editor';
1311
+ const configurationService = monaco.extra.StandaloneServices.get(IConfigurationService);
1312
+ return configurationService.getValue(section, {
1313
+ overrideIdentifier: language
1314
+ });
1315
+ }
1316
+ function registerConfigurations(configurations, validate) {
1317
+ configurationRegistry.registerConfigurations(configurations, validate);
1318
+ }
1319
+ function registerDefaultConfigurations(defaultConfigurations) {
1320
+ configurationRegistry.registerDefaultConfigurations(defaultConfigurations.map(overrides => ({
1321
+ overrides
1322
+ })));
1323
+ }
1324
+
1325
+ export { registerDefaultConfigurations as a, extensions as e, getConfiguration as g, onConfigurationChanged as o, registerConfigurations as r };