@codingame/monaco-editor-wrapper 1.4.3 → 1.7.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 (99) hide show
  1. package/dist/COBOL Copybook2.js +2017 -0
  2. package/dist/COBOL2.js +2017 -0
  3. package/dist/JavaScript.tmLanguage.js +0 -49
  4. package/dist/JavaScriptReact.tmLanguage.js +0 -49
  5. package/dist/SQL.plist.js +482 -0
  6. package/dist/TypeScript.tmLanguage.js +0 -49
  7. package/dist/TypeScriptReact.tmLanguage.js +0 -49
  8. package/dist/bsv2.js +49 -0
  9. package/dist/c2.js +18 -0
  10. package/dist/cobol-snippets.js +2017 -0
  11. package/dist/codeblock3.js +18 -18
  12. package/dist/coffeescript-coffeescript.code-snippets.js +18 -0
  13. package/dist/coffeescript2.js +18 -0
  14. package/dist/configuration/hack.d.ts +2 -0
  15. package/dist/cpp-c.code-snippets.js +18 -0
  16. package/dist/cpp-cpp.code-snippets.js +18 -0
  17. package/dist/cpp2.js +18 -0
  18. package/dist/cpptools.js +7 -1
  19. package/dist/csharp2.js +508 -0
  20. package/dist/css.worker.js +1 -1
  21. package/dist/cssContribution.js +10 -0
  22. package/dist/diet3.js +92 -0
  23. package/dist/elixir-snippets.js +184 -0
  24. package/dist/extensionConfigurations.js +9475 -0
  25. package/dist/features/extensionConfigurations.js +3 -3
  26. package/dist/fsharp-fsharp.code-snippets.js +18 -0
  27. package/dist/fsharp2.js +18 -0
  28. package/dist/groovy-groovy.code-snippets.js +229 -0
  29. package/dist/groovy2.js +229 -0
  30. package/dist/hacks.d.ts +2 -1
  31. package/dist/html (eex).js +31 -0
  32. package/dist/html.worker.js +1 -1
  33. package/dist/htmlContribution.js +10 -0
  34. package/dist/index.d.ts +2 -2
  35. package/dist/java-java.js +4 -1
  36. package/dist/java.js +11 -0
  37. package/dist/java2.js +3 -2
  38. package/dist/javascript-javascript.code-snippets.js +196 -0
  39. package/dist/javascript2.js +196 -0
  40. package/dist/javascriptreact2.js +196 -0
  41. package/dist/json.worker.js +1 -1
  42. package/dist/jsonContribution.js +78 -0
  43. package/dist/keybindings/index.d.ts +2 -1
  44. package/dist/keybindings/keybindingHelper.d.ts +1 -1
  45. package/dist/kotlin2.js +117 -0
  46. package/dist/kotlinscript2.js +117 -0
  47. package/dist/languages/extensions/configurationLoader.d.ts +1306 -0
  48. package/dist/languages/extensions/languageConfigurationLoader.d.ts +9 -1
  49. package/dist/languages/monarch/list.d.ts +7 -0
  50. package/dist/languages/textMate/CGTMTokenizationSupport.d.ts +2 -2
  51. package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
  52. package/dist/lua2.js +35 -0
  53. package/dist/main.js +186 -232
  54. package/dist/markdown-basics-markdown.code-snippets.js +121 -0
  55. package/dist/markdown-basics.js +103 -0
  56. package/dist/markdown2.js +103 -0
  57. package/dist/monaco.d.ts +0 -1
  58. package/dist/pgsql-sql.js +21 -0
  59. package/dist/pgsql.js +21 -0
  60. package/dist/php-php.code-snippets.js +265 -0
  61. package/dist/php2.js +265 -0
  62. package/dist/powershell-powershell.code-snippets.js +18 -0
  63. package/dist/powershell2.js +18 -0
  64. package/dist/r.tmLanguage.js +572 -0
  65. package/dist/r2.js +1 -1
  66. package/dist/reason2.js +100 -0
  67. package/dist/scalameta.js +12 -1
  68. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +3 -3
  69. package/dist/services/TextModelService.d.ts +25 -0
  70. package/dist/services/functional.d.ts +1 -0
  71. package/dist/services/lyfecycle.d.ts +13 -0
  72. package/dist/sql2.js +21 -0
  73. package/dist/svlangserver-systemverilog.js +395 -0
  74. package/dist/svlangserver.js +85 -0
  75. package/dist/swift-swift.code-snippets.js +183 -0
  76. package/dist/swift2.js +183 -0
  77. package/dist/systemverilog.js +41 -7
  78. package/dist/systemverilog.tmLanguage.js +676 -496
  79. package/dist/systemverilog2.js +208 -0
  80. package/dist/tcl2.js +151 -0
  81. package/dist/theme/tools.d.ts +2 -1
  82. package/dist/ts.worker.js +1 -1
  83. package/dist/typescript-basics-typescript.code-snippets.js +312 -0
  84. package/dist/typescript-basics.js +312 -0
  85. package/dist/typescript-language-features.js +14 -4
  86. package/dist/typescript2.js +312 -0
  87. package/dist/typescriptContribution.js +36 -0
  88. package/dist/typescriptreact2.js +312 -0
  89. package/dist/vb-vb.code-snippets.js +88 -0
  90. package/dist/vb2.js +88 -0
  91. package/dist/verilog-systemverilog.js +327 -140
  92. package/dist/verilog.js +85 -3
  93. package/dist/verilog2.js +56 -65
  94. package/dist/vscode-R-r-snippets.js +534 -0
  95. package/dist/vscode-R-rmarkdown.js +91 -0
  96. package/dist/vscode-python.js +9 -0
  97. package/dist/worker.js +1 -1
  98. package/package.json +18 -14
  99. package/stats.html +1 -1
@@ -0,0 +1,78 @@
1
+ import { _ as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
2
+ import 'monaco-editor/esm/vs/language/json/monaco.contribution';
3
+ import * as monaco from 'monaco-editor/esm/vs/editor/edcore.main';
4
+ import { r as registerWorkerLoader } from './worker.js';
5
+
6
+ const schemasById = monaco.extra.Registry.as(monaco.extra.JsonContributionExtensions.JSONContribution).getSchemaContributions().schemas; // Hack because the commands are filled by a code not run in monaco-editor
7
+
8
+ {
9
+ const allCommands = monaco.extra.CommandsRegistry.getCommands();
10
+ const keybindingsCommandSchema = schemasById['vscode://schemas/keybindings'].items.properties.command.anyOf[0];
11
+ keybindingsCommandSchema.enum = Array.from(allCommands.keys());
12
+ keybindingsCommandSchema.enumDescriptions = Array.from(allCommands.values()).map(command => {
13
+ var _command$description;
14
+
15
+ return (_command$description = command.description) === null || _command$description === void 0 ? void 0 : _command$description.description;
16
+ });
17
+ }
18
+ const vimKeybindingsSchema = {
19
+ type: 'object',
20
+ properties: {
21
+ before: {
22
+ type: 'array',
23
+ items: {
24
+ type: 'string'
25
+ }
26
+ },
27
+ after: {
28
+ type: 'array',
29
+ items: {
30
+ type: 'string'
31
+ }
32
+ }
33
+ }
34
+ };
35
+ monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
36
+ comments: 'ignore',
37
+ validate: true,
38
+ schemas: [{
39
+ uri: 'vscode://schemas/settings/resourceLanguage',
40
+ schema: schemasById['vscode://schemas/settings/resourceLanguage']
41
+ }, {
42
+ uri: 'vscode://schemas/keybindings',
43
+ fileMatch: ['file:///keybindings.json'],
44
+ schema: schemasById['vscode://schemas/keybindings']
45
+ }, {
46
+ uri: 'vscode://schemas/settings/user',
47
+ fileMatch: ['file:///settings.json'],
48
+ schema: {
49
+ properties: _objectSpread2(_objectSpread2({}, monaco.extra.allSettings.properties), {}, {
50
+ 'vim.normalModeKeyBindings': {
51
+ type: 'array',
52
+ description: 'Remapped keys in Normal mode.',
53
+ items: vimKeybindingsSchema
54
+ },
55
+ 'vim.insertModeKeyBindings': {
56
+ type: 'array',
57
+ description: 'Remapped keys in Insert mode.',
58
+ items: vimKeybindingsSchema
59
+ },
60
+ 'vim.visualModeKeyBindings': {
61
+ type: 'array',
62
+ description: 'Remapped keys in Visual mode.',
63
+ items: vimKeybindingsSchema
64
+ }
65
+ }),
66
+ patternProperties: monaco.extra.allSettings.patternProperties,
67
+ additionalProperties: true,
68
+ allowTrailingCommas: true,
69
+ allowComments: true
70
+ }
71
+ }]
72
+ });
73
+
74
+ const workerLoader = async () => (await import(
75
+ /* webpackChunkName: "MonacoJsonWorker" */
76
+ './json.worker.js').then(module => module)).default;
77
+
78
+ registerWorkerLoader('json', workerLoader);
@@ -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;
@@ -0,0 +1,117 @@
1
+ var fun = {
2
+ prefix: "fun",
3
+ body: [
4
+ "fun ${1:foo}() = ${0}"
5
+ ],
6
+ description: "One line fucntion"
7
+ };
8
+ var fun2 = {
9
+ prefix: "fun",
10
+ body: [
11
+ "fun ${1:foo}(${2:bar}: ${3:Any}, ${4:baz}: ${5:Any}): ${6:Unit} {",
12
+ "\t${0}",
13
+ "}"
14
+ ],
15
+ description: "Function with 2 parameters"
16
+ };
17
+ var fun1 = {
18
+ prefix: "fun",
19
+ body: [
20
+ "fun ${1:foo}(${2:bar}: ${3:Any}): ${4:Unit} {",
21
+ "\t${0}",
22
+ "}"
23
+ ],
24
+ description: "Function with 1 parameter"
25
+ };
26
+ var fun0 = {
27
+ prefix: "fun",
28
+ body: [
29
+ "fun ${1:foo}(): Unit {",
30
+ "\t${0}",
31
+ "}"
32
+ ],
33
+ description: "Function with 0 parameters"
34
+ };
35
+ var main = {
36
+ prefix: "main",
37
+ body: [
38
+ "fun main(args: Array<String>) {",
39
+ "\t${0}",
40
+ "}"
41
+ ],
42
+ description: "main() function"
43
+ };
44
+ var class1 = {
45
+ prefix: "class",
46
+ body: [
47
+ "class ${1:foo}(${2:bar}) {",
48
+ "\t${0}",
49
+ "}"
50
+ ],
51
+ description: "Class with constructor"
52
+ };
53
+ var data = {
54
+ prefix: "class",
55
+ body: [
56
+ "data class ${1:foo}(${0})"
57
+ ],
58
+ description: "Empty data class"
59
+ };
60
+ var singleton = {
61
+ prefix: "singleton",
62
+ body: [
63
+ "object ${1:foo} {",
64
+ "\t${0}",
65
+ "}"
66
+ ],
67
+ description: "Empty singleton"
68
+ };
69
+ var kotlin = {
70
+ fun: fun,
71
+ fun2: fun2,
72
+ fun1: fun1,
73
+ fun0: fun0,
74
+ "void": {
75
+ prefix: "void",
76
+ body: [
77
+ "fun ${1:foo}() {",
78
+ "\t${0}",
79
+ "}"
80
+ ],
81
+ description: "Function that returns nothing"
82
+ },
83
+ main: main,
84
+ "for": {
85
+ prefix: "for",
86
+ body: [
87
+ "for (${1:i} in ${2:iterable}) {",
88
+ "\t${0}",
89
+ "}"
90
+ ]
91
+ },
92
+ "try": {
93
+ prefix: "try",
94
+ body: [
95
+ "try {",
96
+ "\t${0}",
97
+ "}",
98
+ "catch(Exception e) {",
99
+ "\t${0}",
100
+ "}"
101
+ ]
102
+ },
103
+ "class": {
104
+ prefix: "class",
105
+ body: [
106
+ "class ${1:foo} {",
107
+ "\t${0}",
108
+ "}"
109
+ ],
110
+ description: "Class without contructor"
111
+ },
112
+ class1: class1,
113
+ data: data,
114
+ singleton: singleton
115
+ };
116
+
117
+ export { class1, data, kotlin as default, fun, fun0, fun1, fun2, main, singleton };
@@ -0,0 +1,117 @@
1
+ var fun = {
2
+ prefix: "fun",
3
+ body: [
4
+ "fun ${1:foo}() = ${0}"
5
+ ],
6
+ description: "One line fucntion"
7
+ };
8
+ var fun2 = {
9
+ prefix: "fun",
10
+ body: [
11
+ "fun ${1:foo}(${2:bar}: ${3:Any}, ${4:baz}: ${5:Any}): ${6:Unit} {",
12
+ "\t${0}",
13
+ "}"
14
+ ],
15
+ description: "Function with 2 parameters"
16
+ };
17
+ var fun1 = {
18
+ prefix: "fun",
19
+ body: [
20
+ "fun ${1:foo}(${2:bar}: ${3:Any}): ${4:Unit} {",
21
+ "\t${0}",
22
+ "}"
23
+ ],
24
+ description: "Function with 1 parameter"
25
+ };
26
+ var fun0 = {
27
+ prefix: "fun",
28
+ body: [
29
+ "fun ${1:foo}(): Unit {",
30
+ "\t${0}",
31
+ "}"
32
+ ],
33
+ description: "Function with 0 parameters"
34
+ };
35
+ var main = {
36
+ prefix: "main",
37
+ body: [
38
+ "fun main(args: Array<String>) {",
39
+ "\t${0}",
40
+ "}"
41
+ ],
42
+ description: "main() function"
43
+ };
44
+ var class1 = {
45
+ prefix: "class",
46
+ body: [
47
+ "class ${1:foo}(${2:bar}) {",
48
+ "\t${0}",
49
+ "}"
50
+ ],
51
+ description: "Class with constructor"
52
+ };
53
+ var data = {
54
+ prefix: "class",
55
+ body: [
56
+ "data class ${1:foo}(${0})"
57
+ ],
58
+ description: "Empty data class"
59
+ };
60
+ var singleton = {
61
+ prefix: "singleton",
62
+ body: [
63
+ "object ${1:foo} {",
64
+ "\t${0}",
65
+ "}"
66
+ ],
67
+ description: "Empty singleton"
68
+ };
69
+ var kotlinscript = {
70
+ fun: fun,
71
+ fun2: fun2,
72
+ fun1: fun1,
73
+ fun0: fun0,
74
+ "void": {
75
+ prefix: "void",
76
+ body: [
77
+ "fun ${1:foo}() {",
78
+ "\t${0}",
79
+ "}"
80
+ ],
81
+ description: "Function that returns nothing"
82
+ },
83
+ main: main,
84
+ "for": {
85
+ prefix: "for",
86
+ body: [
87
+ "for (${1:i} in ${2:iterable}) {",
88
+ "\t${0}",
89
+ "}"
90
+ ]
91
+ },
92
+ "try": {
93
+ prefix: "try",
94
+ body: [
95
+ "try {",
96
+ "\t${0}",
97
+ "}",
98
+ "catch(Exception e) {",
99
+ "\t${0}",
100
+ "}"
101
+ ]
102
+ },
103
+ "class": {
104
+ prefix: "class",
105
+ body: [
106
+ "class ${1:foo} {",
107
+ "\t${0}",
108
+ "}"
109
+ ],
110
+ description: "Class without contructor"
111
+ },
112
+ class1: class1,
113
+ data: data,
114
+ singleton: singleton
115
+ };
116
+
117
+ export { class1, data, kotlinscript as default, fun, fun0, fun1, fun2, main, singleton };