@codingame/monaco-editor-wrapper 1.5.0 → 1.8.0

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.
Files changed (41) hide show
  1. package/dist/JavaScript.tmLanguage.js +0 -49
  2. package/dist/JavaScriptReact.tmLanguage.js +0 -49
  3. package/dist/TypeScript.tmLanguage.js +0 -49
  4. package/dist/TypeScriptReact.tmLanguage.js +0 -49
  5. package/dist/cobol-snippets.js +2017 -0
  6. package/dist/codeblock3.js +18 -18
  7. package/dist/coffeescript-coffeescript.code-snippets.js +18 -0
  8. package/dist/cpp-c.code-snippets.js +18 -0
  9. package/dist/cpp-cpp.code-snippets.js +18 -0
  10. package/dist/cpptools.js +2 -2
  11. package/dist/elixir-snippets.js +184 -0
  12. package/dist/features/extensionConfigurations.js +3 -3
  13. package/dist/fsharp-fsharp.code-snippets.js +18 -0
  14. package/dist/groovy-groovy.code-snippets.js +229 -0
  15. package/dist/index.d.ts +2 -2
  16. package/dist/java.js +11 -0
  17. package/dist/java2.js +1 -1
  18. package/dist/javascript-javascript.code-snippets.js +196 -0
  19. package/dist/keybindings/index.d.ts +2 -1
  20. package/dist/keybindings/keybindingHelper.d.ts +1 -1
  21. package/dist/languages/index.d.ts +2 -1
  22. package/dist/languages/textMate/index.d.ts +1 -1
  23. package/dist/main.js +75 -145
  24. package/dist/markdown-basics-markdown.code-snippets.js +121 -0
  25. package/dist/php-php.code-snippets.js +265 -0
  26. package/dist/powershell-powershell.code-snippets.js +18 -0
  27. package/dist/r2.js +1 -1
  28. package/dist/scalameta.js +6 -1
  29. package/dist/svlangserver-systemverilog.js +395 -0
  30. package/dist/svlangserver.js +85 -0
  31. package/dist/swift-swift.code-snippets.js +183 -0
  32. package/dist/systemverilog.js +41 -7
  33. package/dist/systemverilog.tmLanguage.js +676 -496
  34. package/dist/typescript-basics-typescript.code-snippets.js +312 -0
  35. package/dist/vb-vb.code-snippets.js +88 -0
  36. package/dist/verilog.js +85 -3
  37. package/dist/vscode-R-r-snippets.js +534 -0
  38. package/dist/vscode-R-rmarkdown.js +91 -0
  39. package/dist/vscode-python.js +9 -0
  40. package/package.json +2 -3
  41. package/stats.html +1 -1
@@ -0,0 +1,196 @@
1
+ var javascriptJavascript_codeSnippets = {
2
+ "define module": {
3
+ prefix: "define",
4
+ body: [
5
+ "define([",
6
+ "\t'require',",
7
+ "\t'${1:dependency}'",
8
+ "], function(require, ${2:factory}) {",
9
+ "\t'use strict';",
10
+ "\t$0",
11
+ "});"
12
+ ],
13
+ description: "define module"
14
+ },
15
+ "For Loop": {
16
+ prefix: "for",
17
+ body: [
18
+ "for (let ${1:index} = 0; ${1:index} < ${2:array}.length; ${1:index}++) {",
19
+ "\tconst ${3:element} = ${2:array}[${1:index}];",
20
+ "\t$TM_SELECTED_TEXT$0",
21
+ "}"
22
+ ],
23
+ description: "For Loop"
24
+ },
25
+ "For-Each Loop": {
26
+ prefix: "foreach",
27
+ body: [
28
+ "${1:array}.forEach(${2:element} => {",
29
+ "\t$TM_SELECTED_TEXT$0",
30
+ "});"
31
+ ],
32
+ description: "For-Each Loop"
33
+ },
34
+ "For-In Loop": {
35
+ prefix: "forin",
36
+ body: [
37
+ "for (const ${1:key} in ${2:object}) {",
38
+ "\tif (Object.hasOwnProperty.call(${2:object}, ${1:key})) {",
39
+ "\t\tconst ${3:element} = ${2:object}[${1:key}];",
40
+ "\t\t$TM_SELECTED_TEXT$0",
41
+ "\t}",
42
+ "}"
43
+ ],
44
+ description: "For-In Loop"
45
+ },
46
+ "For-Of Loop": {
47
+ prefix: "forof",
48
+ body: [
49
+ "for (const ${1:iterator} of ${2:object}) {",
50
+ "\t$TM_SELECTED_TEXT$0",
51
+ "}"
52
+ ],
53
+ description: "For-Of Loop"
54
+ },
55
+ "Function Statement": {
56
+ prefix: "function",
57
+ body: [
58
+ "function ${1:name}(${2:params}) {",
59
+ "\t$TM_SELECTED_TEXT$0",
60
+ "}"
61
+ ],
62
+ description: "Function Statement"
63
+ },
64
+ "If Statement": {
65
+ prefix: "if",
66
+ body: [
67
+ "if (${1:condition}) {",
68
+ "\t$TM_SELECTED_TEXT$0",
69
+ "}"
70
+ ],
71
+ description: "If Statement"
72
+ },
73
+ "If-Else Statement": {
74
+ prefix: "ifelse",
75
+ body: [
76
+ "if (${1:condition}) {",
77
+ "\t$TM_SELECTED_TEXT$0",
78
+ "} else {",
79
+ "\t",
80
+ "}"
81
+ ],
82
+ description: "If-Else Statement"
83
+ },
84
+ "New Statement": {
85
+ prefix: "new",
86
+ body: [
87
+ "const ${1:name} = new ${2:type}(${3:arguments});$0"
88
+ ],
89
+ description: "New Statement"
90
+ },
91
+ "Switch Statement": {
92
+ prefix: "switch",
93
+ body: [
94
+ "switch (${1:key}) {",
95
+ "\tcase ${2:value}:",
96
+ "\t\t$0",
97
+ "\t\tbreak;",
98
+ "",
99
+ "\tdefault:",
100
+ "\t\tbreak;",
101
+ "}"
102
+ ],
103
+ description: "Switch Statement"
104
+ },
105
+ "While Statement": {
106
+ prefix: "while",
107
+ body: [
108
+ "while (${1:condition}) {",
109
+ "\t$TM_SELECTED_TEXT$0",
110
+ "}"
111
+ ],
112
+ description: "While Statement"
113
+ },
114
+ "Do-While Statement": {
115
+ prefix: "dowhile",
116
+ body: [
117
+ "do {",
118
+ "\t$TM_SELECTED_TEXT$0",
119
+ "} while (${1:condition});"
120
+ ],
121
+ description: "Do-While Statement"
122
+ },
123
+ "Try-Catch Statement": {
124
+ prefix: "trycatch",
125
+ body: [
126
+ "try {",
127
+ "\t$TM_SELECTED_TEXT$0",
128
+ "} catch (${1:error}) {",
129
+ "\t",
130
+ "}"
131
+ ],
132
+ description: "Try-Catch Statement"
133
+ },
134
+ "Set Timeout Function": {
135
+ prefix: "settimeout",
136
+ body: [
137
+ "setTimeout(() => {",
138
+ "\t$TM_SELECTED_TEXT$0",
139
+ "}, ${1:timeout});"
140
+ ],
141
+ description: "Set Timeout Function"
142
+ },
143
+ "Set Interval Function": {
144
+ prefix: "setinterval",
145
+ body: [
146
+ "setInterval(() => {",
147
+ "\t$TM_SELECTED_TEXT$0",
148
+ "}, ${1:interval});"
149
+ ],
150
+ description: "Set Interval Function"
151
+ },
152
+ "Import external module.": {
153
+ prefix: "import statement",
154
+ body: [
155
+ "import { $0 } from \"${1:module}\";"
156
+ ],
157
+ description: "Import external module."
158
+ },
159
+ "Region Start": {
160
+ prefix: "#region",
161
+ body: [
162
+ "//#region $0"
163
+ ],
164
+ description: "Folding Region Start"
165
+ },
166
+ "Region End": {
167
+ prefix: "#endregion",
168
+ body: [
169
+ "//#endregion"
170
+ ],
171
+ description: "Folding Region End"
172
+ },
173
+ "Log to the console": {
174
+ prefix: "log",
175
+ body: [
176
+ "console.log($1);"
177
+ ],
178
+ description: "Log to the console"
179
+ },
180
+ "Log warning to console": {
181
+ prefix: "warn",
182
+ body: [
183
+ "console.warn($1);"
184
+ ],
185
+ description: "Log warning to the console"
186
+ },
187
+ "Log error to console": {
188
+ prefix: "error",
189
+ body: [
190
+ "console.error($1);"
191
+ ],
192
+ description: "Log error to the console"
193
+ }
194
+ };
195
+
196
+ export { javascriptJavascript_codeSnippets as default };
@@ -1,2 +1,3 @@
1
1
  import * as monaco from 'monaco-editor';
2
- export declare function updateEditorKeybindings(editor: monaco.editor.IStandaloneCodeEditor, keyBindingsMode: "vim" | "classic" | "emacs" | undefined, statusBarElement: Element, keyBindings?: monaco.extra.IUserFriendlyKeybinding[]): monaco.IDisposable;
2
+ export declare function updateKeybindings(bindings: monaco.extra.IUserFriendlyKeybinding[]): void;
3
+ export declare function updateEditorKeybindingsMode(editor: monaco.editor.IStandaloneCodeEditor, keyBindingsMode: "vim" | "classic" | "emacs" | undefined, statusBarElement: Element): monaco.IDisposable;
@@ -1,2 +1,2 @@
1
1
  import * as monaco from 'monaco-editor';
2
- export declare function updateKeybindings(editor: monaco.editor.IStandaloneCodeEditor, bindings: monaco.extra.IUserFriendlyKeybinding[]): void;
2
+ export declare function updateKeybindings(bindings: monaco.extra.IUserFriendlyKeybinding[]): void;
@@ -1,3 +1,4 @@
1
1
  import './snippets';
2
2
  declare function getMonacoLanguage(languageOrModeId: string): string;
3
- export { getMonacoLanguage };
3
+ declare function loadLanguage(languageId: string): Promise<void>;
4
+ export { getMonacoLanguage, loadLanguage };
@@ -1,3 +1,3 @@
1
1
  import * as monaco from 'monaco-editor';
2
2
  import './semanticTokens';
3
- export declare function createTextMateTokensProvider(languageId: string): Promise<monaco.languages.ITokenizationSupport>;
3
+ export declare function getOrCreateTextMateTokensProvider(languageId: string): Promise<monaco.languages.ITokenizationSupport>;
package/dist/main.js CHANGED
@@ -451,6 +451,7 @@ var rawGrammars = [
451
451
  "meta.embedded.block.pug": "jade",
452
452
  "meta.embedded.block.javascript": "javascript",
453
453
  "meta.embedded.block.json": "json",
454
+ "meta.embedded.block.jsonc": "jsonc",
454
455
  "meta.embedded.block.less": "less",
455
456
  "meta.embedded.block.objc": "objc",
456
457
  "meta.embedded.block.scss": "scss",
@@ -841,29 +842,13 @@ var rawGrammars = [
841
842
  "language": "tcl",
842
843
  "scopeName": "source.tcl"
843
844
  },
844
- {
845
- "language": "verilog",
846
- "scopeName": "source.verilog"
847
- },
848
845
  {
849
846
  "language": "systemverilog",
850
847
  "scopeName": "source.systemverilog"
851
848
  },
852
849
  {
853
- "language": "bsv",
854
- "scopeName": "source.bsv"
855
- },
856
- {
857
- "language": "ucf",
858
- "scopeName": "source.ucfconstraints"
859
- },
860
- {
861
- "language": "sdc",
862
- "scopeName": "source.sdc"
863
- },
864
- {
865
- "language": "xdc",
866
- "scopeName": "source.sdc"
850
+ "language": "verilog",
851
+ "scopeName": "source.systemverilog"
867
852
  },
868
853
  {
869
854
  "scopeName": "markdown.verilog.codeblock",
@@ -871,8 +856,8 @@ var rawGrammars = [
871
856
  "text.html.markdown"
872
857
  ],
873
858
  "embeddedLanguages": {
874
- "meta.embedded.block.verilog": "source.verilog",
875
- "meta.embedded.block.systemverilog": "source.systemverilog"
859
+ "meta.embedded.block.systemverilog": "source.systemverilog",
860
+ "meta.embedded.block.verilog": "source.verilog"
876
861
  }
877
862
  },
878
863
  {
@@ -1245,21 +1230,9 @@ const loader$2 = {
1245
1230
  'source.tcl': async () => (await import(
1246
1231
  /* webpackChunkName: "grammar-source-tcl" */
1247
1232
  './tcl.tmlanguage.yaml.js').then(module => module)).default,
1248
- 'source.verilog': async () => (await import(
1249
- /* webpackChunkName: "grammar-source-verilog" */
1250
- './verilog.tmLanguage.js').then(module => module)).default,
1251
1233
  'source.systemverilog': async () => (await import(
1252
1234
  /* webpackChunkName: "grammar-source-systemverilog" */
1253
1235
  './systemverilog.tmLanguage.js').then(module => module)).default,
1254
- 'source.bsv': async () => (await import(
1255
- /* webpackChunkName: "grammar-source-bsv" */
1256
- './BSV.tmLanguage.js').then(module => module)).default,
1257
- 'source.ucfconstraints': async () => (await import(
1258
- /* webpackChunkName: "grammar-source-ucfconstraints" */
1259
- './ucf.tmLanguage.js').then(module => module)).default,
1260
- 'source.sdc': async () => (await import(
1261
- /* webpackChunkName: "grammar-source-sdc" */
1262
- './sdc.tmLanguage.js').then(module => module)).default,
1263
1236
  'markdown.verilog.codeblock': async () => (await import(
1264
1237
  /* webpackChunkName: "grammar-markdown-verilog-codeblock" */
1265
1238
  './codeblock3.js').then(module => module)).default,
@@ -2504,6 +2477,7 @@ function getOrCreateGrammarFactory() {
2504
2477
  }
2505
2478
 
2506
2479
  const languageService$2 = monaco.extra.StandaloneServices.get(monaco.languages.ILanguageService);
2480
+
2507
2481
  async function createTextMateTokensProvider(languageId) {
2508
2482
  const grammarFactory = getOrCreateGrammarFactory();
2509
2483
  const encodedLanguageId = languageService$2.languageIdCodec.encodeLanguageId(languageId);
@@ -2525,6 +2499,18 @@ async function createTextMateTokensProvider(languageId) {
2525
2499
  return new CGTMTokenizationSupport(languageId, encodedLanguageId, tokenization, grammar);
2526
2500
  }
2527
2501
 
2502
+ const tokenizationSupports = new Map();
2503
+ function getOrCreateTextMateTokensProvider(languageId) {
2504
+ let tokenizationSupportPromise = tokenizationSupports.get(languageId);
2505
+
2506
+ if (tokenizationSupportPromise == null) {
2507
+ tokenizationSupportPromise = createTextMateTokensProvider(languageId);
2508
+ tokenizationSupports.set(languageId, tokenizationSupportPromise);
2509
+ }
2510
+
2511
+ return tokenizationSupportPromise;
2512
+ }
2513
+
2528
2514
  var textMateLanguages = [
2529
2515
  {
2530
2516
  "id": "clojure",
@@ -3586,68 +3572,28 @@ var textMateLanguages = [
3586
3572
  ".test"
3587
3573
  ]
3588
3574
  },
3589
- {
3590
- "id": "verilog",
3591
- "aliases": [
3592
- "Verilog",
3593
- "verilog"
3594
- ],
3595
- "extensions": [
3596
- ".v",
3597
- ".vh",
3598
- ".vl"
3599
- ]
3600
- },
3601
3575
  {
3602
3576
  "id": "systemverilog",
3603
3577
  "aliases": [
3578
+ "SystemVerilog",
3579
+ "systemverilog",
3604
3580
  "System Verilog",
3605
- "systemverilog"
3581
+ "Systemverilog"
3606
3582
  ],
3607
3583
  "extensions": [
3608
3584
  ".sv",
3609
- ".svh",
3610
- ".SV"
3611
- ]
3612
- },
3613
- {
3614
- "id": "bsv",
3615
- "aliases": [
3616
- "BluespecSystemVerilog",
3617
- "Bluespec SystemVerilog",
3618
- "BSV"
3619
- ],
3620
- "extensions": [
3621
- ".bsv",
3622
- ".BSV"
3623
- ]
3624
- },
3625
- {
3626
- "id": "ucf",
3627
- "aliases": [
3628
- "vivado ucf",
3629
- "ucf constraints"
3630
- ],
3631
- "extensions": [
3632
- ".ucf"
3633
- ]
3634
- },
3635
- {
3636
- "id": "sdc",
3637
- "aliases": [
3638
- "Synopsys Design Constraints"
3639
- ],
3640
- "extensions": [
3641
- ".sdc"
3585
+ ".svh"
3642
3586
  ]
3643
3587
  },
3644
3588
  {
3645
- "id": "xdc",
3589
+ "id": "verilog",
3646
3590
  "aliases": [
3647
- "Xilinx Design Constraints"
3591
+ "Verilog",
3592
+ "verilog"
3648
3593
  ],
3649
3594
  "extensions": [
3650
- ".xdc"
3595
+ ".v",
3596
+ ".vh"
3651
3597
  ]
3652
3598
  },
3653
3599
  {
@@ -4091,24 +4037,12 @@ const loader$1 = {
4091
4037
  'tcl': async () => (await import(
4092
4038
  /* webpackChunkName: "language-configuration-tcl" */
4093
4039
  './tcl.js').then(module => module)).default,
4094
- 'verilog': async () => (await import(
4095
- /* webpackChunkName: "language-configuration-verilog" */
4096
- './verilog.js').then(module => module)).default,
4097
4040
  'systemverilog': async () => (await import(
4098
4041
  /* webpackChunkName: "language-configuration-systemverilog" */
4099
4042
  './systemverilog.js').then(module => module)).default,
4100
- 'bsv': async () => (await import(
4101
- /* webpackChunkName: "language-configuration-bsv" */
4102
- './bsv.js').then(module => module)).default,
4103
- 'ucf': async () => (await import(
4104
- /* webpackChunkName: "language-configuration-ucf" */
4105
- './ucf.js').then(module => module)).default,
4106
- 'sdc': async () => (await import(
4107
- /* webpackChunkName: "language-configuration-sdc" */
4108
- './sdc.js').then(module => module)).default,
4109
- 'xdc': async () => (await import(
4110
- /* webpackChunkName: "language-configuration-xdc" */
4111
- './xdc.js').then(module => module)).default,
4043
+ 'verilog': async () => (await import(
4044
+ /* webpackChunkName: "language-configuration-verilog" */
4045
+ './verilog.js').then(module => module)).default,
4112
4046
  'postgres': async () => (await import(
4113
4047
  /* webpackChunkName: "language-configuration-postgres" */
4114
4048
  './postgres.js').then(module => module)).default,
@@ -4135,52 +4069,52 @@ const loader$1 = {
4135
4069
  const loader = {
4136
4070
  'coffeescript': async () => (await import(
4137
4071
  /* webpackChunkName: "snippet-coffeescript" */
4138
- './coffeescript-coffeescript.js').then(module => module)).default,
4072
+ './coffeescript-coffeescript.code-snippets.js').then(module => module)).default,
4139
4073
  'c': async () => (await import(
4140
4074
  /* webpackChunkName: "snippet-c" */
4141
- './cpp-c.js').then(module => module)).default,
4075
+ './cpp-c.code-snippets.js').then(module => module)).default,
4142
4076
  'cpp': async () => (await import(
4143
4077
  /* webpackChunkName: "snippet-cpp" */
4144
- './cpp-cpp.js').then(module => module)).default,
4078
+ './cpp-cpp.code-snippets.js').then(module => module)).default,
4145
4079
  'csharp': async () => (await import(
4146
4080
  /* webpackChunkName: "snippet-csharp" */
4147
4081
  './omnisharp-csharp.js').then(module => module)).default,
4148
4082
  'fsharp': async () => (await import(
4149
4083
  /* webpackChunkName: "snippet-fsharp" */
4150
- './fsharp-fsharp.js').then(module => module)).default,
4084
+ './fsharp-fsharp.code-snippets.js').then(module => module)).default,
4151
4085
  'groovy': async () => (await import(
4152
4086
  /* webpackChunkName: "snippet-groovy" */
4153
- './groovy-groovy.js').then(module => module)).default,
4087
+ './groovy-groovy.code-snippets.js').then(module => module)).default,
4154
4088
  'java': async () => (await import(
4155
4089
  /* webpackChunkName: "snippet-java" */
4156
4090
  './java-java.js').then(module => module)).default,
4157
4091
  'javascript': async () => (await import(
4158
4092
  /* webpackChunkName: "snippet-javascript" */
4159
- './javascript-javascript.js').then(module => module)).default,
4093
+ './javascript-javascript.code-snippets.js').then(module => module)).default,
4160
4094
  'javascriptreact': async () => (await import(
4161
4095
  /* webpackChunkName: "snippet-javascriptreact" */
4162
- './javascript-javascriptreact.js').then(module => module)).default,
4096
+ './javascript-javascript.code-snippets.js').then(module => module)).default,
4163
4097
  'markdown': async () => (await import(
4164
4098
  /* webpackChunkName: "snippet-markdown" */
4165
- './markdown-basics-markdown.js').then(module => module)).default,
4099
+ './markdown-basics-markdown.code-snippets.js').then(module => module)).default,
4166
4100
  'php': async () => (await import(
4167
4101
  /* webpackChunkName: "snippet-php" */
4168
- './php-php.js').then(module => module)).default,
4102
+ './php-php.code-snippets.js').then(module => module)).default,
4169
4103
  'powershell': async () => (await import(
4170
4104
  /* webpackChunkName: "snippet-powershell" */
4171
- './powershell-powershell.js').then(module => module)).default,
4105
+ './powershell-powershell.code-snippets.js').then(module => module)).default,
4172
4106
  'swift': async () => (await import(
4173
4107
  /* webpackChunkName: "snippet-swift" */
4174
- './swift-swift.js').then(module => module)).default,
4108
+ './swift-swift.code-snippets.js').then(module => module)).default,
4175
4109
  'typescript': async () => (await import(
4176
4110
  /* webpackChunkName: "snippet-typescript" */
4177
- './typescript-basics-typescript.js').then(module => module)).default,
4111
+ './typescript-basics-typescript.code-snippets.js').then(module => module)).default,
4178
4112
  'typescriptreact': async () => (await import(
4179
4113
  /* webpackChunkName: "snippet-typescriptreact" */
4180
- './typescript-basics-typescriptreact.js').then(module => module)).default,
4114
+ './typescript-basics-typescript.code-snippets.js').then(module => module)).default,
4181
4115
  'vb': async () => (await import(
4182
4116
  /* webpackChunkName: "snippet-vb" */
4183
- './vb-vb.js').then(module => module)).default,
4117
+ './vb-vb.code-snippets.js').then(module => module)).default,
4184
4118
  'diet': async () => (await import(
4185
4119
  /* webpackChunkName: "snippet-diet" */
4186
4120
  './d-diet.js').then(module => module)).default,
@@ -4189,7 +4123,7 @@ const loader = {
4189
4123
  './kotlin-kotlin.js').then(module => module)).default,
4190
4124
  'kotlinscript': async () => (await import(
4191
4125
  /* webpackChunkName: "snippet-kotlinscript" */
4192
- './kotlin-kotlinscript.js').then(module => module)).default,
4126
+ './kotlin-kotlin.js').then(module => module)).default,
4193
4127
  'reason': async () => (await import(
4194
4128
  /* webpackChunkName: "snippet-reason" */
4195
4129
  './ocaml-reason.js').then(module => module)).default,
@@ -4198,37 +4132,34 @@ const loader = {
4198
4132
  './pascal-pascal.js').then(module => module)).default,
4199
4133
  'COBOL': async () => (await import(
4200
4134
  /* webpackChunkName: "snippet-COBOL" */
4201
- './cobol-COBOL.js').then(module => module)).default,
4135
+ './cobol-snippets.js').then(module => module)).default,
4202
4136
  'COBOL Copybook': async () => (await import(
4203
4137
  /* webpackChunkName: "snippet-COBOL Copybook" */
4204
- './cobol-COBOL Copybook.js').then(module => module)).default,
4138
+ './cobol-snippets.js').then(module => module)).default,
4205
4139
  'elixir': async () => (await import(
4206
4140
  /* webpackChunkName: "snippet-elixir" */
4207
- './elixir-elixir.js').then(module => module)).default,
4141
+ './elixir-snippets.js').then(module => module)).default,
4208
4142
  'erlang': async () => (await import(
4209
4143
  /* webpackChunkName: "snippet-erlang" */
4210
4144
  './erlang-erlang.js').then(module => module)).default,
4211
4145
  'tcl': async () => (await import(
4212
4146
  /* webpackChunkName: "snippet-tcl" */
4213
4147
  './tcl-tcl.js').then(module => module)).default,
4214
- 'verilog': async () => (await import(
4215
- /* webpackChunkName: "snippet-verilog" */
4216
- './verilog-verilog.js').then(module => module)).default,
4217
4148
  'systemverilog': async () => (await import(
4218
4149
  /* webpackChunkName: "snippet-systemverilog" */
4219
- './verilog-systemverilog.js').then(module => module)).default,
4220
- 'bsv': async () => (await import(
4221
- /* webpackChunkName: "snippet-bsv" */
4222
- './verilog-bsv.js').then(module => module)).default,
4150
+ './svlangserver-systemverilog.js').then(module => module)).default,
4151
+ 'verilog': async () => (await import(
4152
+ /* webpackChunkName: "snippet-verilog" */
4153
+ './svlangserver-systemverilog.js').then(module => module)).default,
4223
4154
  'r': async () => (await import(
4224
4155
  /* webpackChunkName: "snippet-r" */
4225
- './vscode-R-r.js').then(module => module)).default,
4156
+ './vscode-R-r-snippets.js').then(module => module)).default,
4226
4157
  'rd': async () => (await import(
4227
4158
  /* webpackChunkName: "snippet-rd" */
4228
- './vscode-R-rd.js').then(module => module)).default,
4159
+ './vscode-R-r-snippets.js').then(module => module)).default,
4229
4160
  'rmd': async () => (await import(
4230
4161
  /* webpackChunkName: "snippet-rmd" */
4231
- './vscode-R-rmd.js').then(module => module)).default
4162
+ './vscode-R-rmarkdown.js').then(module => module)).default
4232
4163
  };
4233
4164
 
4234
4165
  class SimpleSnippetService {
@@ -4331,7 +4262,7 @@ for (const languageId of languagesIds) {
4331
4262
  });
4332
4263
  monaco.languages.setTokenizationSupportFactory(languageId, {
4333
4264
  createTokenizationSupport: async () => {
4334
- return createTextMateTokensProvider(languageId).catch(err => {
4265
+ return getOrCreateTextMateTokensProvider(languageId).catch(err => {
4335
4266
  const monarchLoader = languageLoader[languageId];
4336
4267
 
4337
4268
  if (monarchLoader != null) {
@@ -4366,20 +4297,23 @@ function parseLanguageConfiguration(config) {
4366
4297
  });
4367
4298
  }
4368
4299
 
4300
+ async function loadLanguageConfiguration(languageId) {
4301
+ const loader = loader$1[languageId];
4302
+
4303
+ if (loader != null) {
4304
+ const configuration = await loader();
4305
+ monaco.extra.handleLanguageConfiguration(languageId, addCustomFoldingMarkers(parseLanguageConfiguration(configuration)));
4306
+ }
4307
+ }
4308
+
4369
4309
  languageService.onDidEncounterLanguage(async languageId => {
4370
4310
  if (languageId === 'plaintext') {
4371
4311
  return;
4372
4312
  }
4373
4313
 
4374
- const loader = loader$1[languageId];
4375
-
4376
- if (loader != null) {
4377
- loader().then(configuration => {
4378
- monaco.extra.handleLanguageConfiguration(languageId, addCustomFoldingMarkers(parseLanguageConfiguration(configuration)));
4379
- }).catch(error => {
4380
- console.error('Unable to load language configuration', error);
4381
- });
4382
- }
4314
+ loadLanguageConfiguration(languageId).catch(error => {
4315
+ console.error('Unable to load language configuration', error);
4316
+ });
4383
4317
  });
4384
4318
 
4385
4319
  function getMonacoLanguage(languageOrModeId) {
@@ -5552,10 +5486,6 @@ function registerEditorOpenHandler(handler) {
5552
5486
  return multiEditorStandaloneCodeEditorServiceImpl.registerEditorOpenHandler(handler);
5553
5487
  }
5554
5488
 
5555
- function updateKeybindings(editor, bindings) {
5556
- editor._standaloneKeybindingService.setUserKeybindings(bindings);
5557
- }
5558
-
5559
5489
  function mapVimKeyBindings(keybindingConfig, mode) {
5560
5490
  if (keybindingConfig != null) {
5561
5491
  for (const item of keybindingConfig) {
@@ -5595,10 +5525,13 @@ function initVimMode(editor, statusBarElement) {
5595
5525
  return monacoVim.initVimMode(editor, statusBarElement);
5596
5526
  }
5597
5527
 
5598
- function updateEditorKeybindings(editor) {
5528
+ const keybindingService = monaco.extra.StandaloneServices.get(monaco.extra.IKeybindingService);
5529
+ function updateKeybindings(bindings) {
5530
+ keybindingService.setUserKeybindings(bindings);
5531
+ }
5532
+ function updateEditorKeybindingsMode(editor) {
5599
5533
  let keyBindingsMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'classic';
5600
5534
  let statusBarElement = arguments.length > 2 ? arguments[2] : undefined;
5601
- let keyBindings = arguments.length > 3 ? arguments[3] : undefined;
5602
5535
 
5603
5536
  switch (keyBindingsMode) {
5604
5537
  case 'vim':
@@ -5615,11 +5548,8 @@ function updateEditorKeybindings(editor) {
5615
5548
 
5616
5549
  default:
5617
5550
  {
5618
- updateKeybindings(editor, keyBindings !== null && keyBindings !== void 0 ? keyBindings : []);
5619
5551
  return {
5620
- dispose: () => {
5621
- updateKeybindings(editor, []);
5622
- }
5552
+ dispose: () => {}
5623
5553
  };
5624
5554
  }
5625
5555
  }
@@ -5845,4 +5775,4 @@ function hideCodeWithoutDecoration(editor, decorations) {
5845
5775
  };
5846
5776
  }
5847
5777
 
5848
- export { addVSCodeTheme, createEditor, getConfiguration, getMonacoLanguage, getThemeData, hideCodeWithoutDecoration, lockCodeWithoutDecoration, onConfigurationChanged, registerConfigurations, registerDefaultConfigurations, registerEditorOpenHandler, registerTextModelContentProvider, updateEditorKeybindings, updateUserConfiguration };
5778
+ export { addVSCodeTheme, createEditor, getConfiguration, getMonacoLanguage, getThemeData, hideCodeWithoutDecoration, lockCodeWithoutDecoration, onConfigurationChanged, registerConfigurations, registerDefaultConfigurations, registerEditorOpenHandler, registerTextModelContentProvider, updateEditorKeybindingsMode, updateKeybindings, updateUserConfiguration };