@codingame/monaco-editor-wrapper 1.15.0 → 2.1.1

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 (58) hide show
  1. package/dist/COBOL.tmLanguage.js +2 -2
  2. package/dist/META.js +100 -0
  3. package/dist/atd.js +114 -0
  4. package/dist/atd2.js +110 -0
  5. package/dist/cobol-snippets.js +2 -2117
  6. package/dist/cobol2.js +46 -0
  7. package/dist/cram.js +257 -0
  8. package/dist/dune-project.js +65 -0
  9. package/dist/dune-project2.js +481 -0
  10. package/dist/dune-workspace.js +65 -0
  11. package/dist/dune-workspace2.js +298 -0
  12. package/dist/dune.js +65 -0
  13. package/dist/dune2.js +2962 -0
  14. package/dist/index.js +31 -1
  15. package/dist/main.js +490 -391
  16. package/dist/menhir-action.js +51 -0
  17. package/dist/menhir.js +597 -0
  18. package/dist/merlin.js +23 -23
  19. package/dist/monaco.d.ts +1 -1
  20. package/dist/oasis.js +99 -0
  21. package/dist/ocaml-dune-project.js +38 -0
  22. package/dist/ocaml-dune.js +53 -0
  23. package/dist/ocaml-markdown-codeblock.js +1 -1
  24. package/dist/ocaml-ocaml.js +88 -0
  25. package/dist/ocaml-ocamllex.js +12 -0
  26. package/dist/ocaml.META.js +29 -0
  27. package/dist/ocaml.interface.js +114 -0
  28. package/dist/ocaml.interface2.js +292 -0
  29. package/dist/ocaml.js +40 -8
  30. package/dist/ocaml.menhir.js +81 -0
  31. package/dist/ocaml.oasis.js +18 -0
  32. package/dist/ocaml.ocamlbuild.js +45 -0
  33. package/dist/ocaml.ocamlformat.js +8 -0
  34. package/dist/ocaml.ocamllex.js +60 -0
  35. package/dist/ocaml.opam-install.js +49 -0
  36. package/dist/ocaml.opam.js +69 -0
  37. package/dist/ocaml2.js +600 -2676
  38. package/dist/ocaml3.js +89 -105
  39. package/dist/ocamlbuild.js +142 -192
  40. package/dist/ocamldoc.js +54 -0
  41. package/dist/ocamlformat.js +206 -0
  42. package/dist/ocamllex.js +133 -0
  43. package/dist/opam-install.js +40 -0
  44. package/dist/opam.js +100 -109
  45. package/dist/reason-markdown-codeblock.js +1 -1
  46. package/dist/reason.js +0 -4
  47. package/dist/scalameta.js +1 -1
  48. package/dist/tools/EditorOpenHandlerRegistry.d.ts +8 -0
  49. package/package.json +47 -3
  50. package/stats.html +1 -1
  51. package/dist/ocaml-hover-info.js +0 -34
  52. package/dist/ocaml-hover-type.js +0 -24
  53. package/dist/ocaml-reason.js +0 -100
  54. package/dist/reason-hover-info.js +0 -34
  55. package/dist/reason-hover-signature.js +0 -21
  56. package/dist/reason-hover-type.js +0 -21
  57. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +0 -9
  58. package/dist/services/TextModelService.d.ts +0 -25
package/dist/ocaml3.js CHANGED
@@ -1,141 +1,125 @@
1
1
  var ocaml = [
2
2
  {
3
- "type": "object",
4
- "title": "Reason configuration",
3
+ "title": "OCaml Platform",
5
4
  "properties": {
6
- "reason.codelens.unicode": {
7
- "type": "boolean",
8
- "default": true,
9
- "description": "Enable the use of unicode symbols in codelens.",
10
- "scope": 3
11
- },
12
- "reason.codelens.enabled": {
13
- "type": "boolean",
14
- "default": false,
15
- "description": "Specifies whether the code lens is shown.",
16
- "scope": 3
17
- },
18
- "reason.debounce.linter": {
19
- "oneOf": [
20
- {
21
- "type": "integer"
22
- },
23
- {
24
- "enum": [
25
- "Infinity"
26
- ]
27
- }
28
- ],
29
- "default": 500,
30
- "description": "How long to idle (in milliseconds) after keypresses before refreshing linter diagnostics. Smaller values refresh diagnostics more quickly.",
31
- "scope": 3
32
- },
33
- "reason.diagnostics.tools": {
34
- "type": "array",
35
- "items": {
36
- "enum": [
37
- "merlin",
38
- "bsb"
39
- ]
40
- },
41
- "default": [
42
- "merlin"
43
- ],
44
- "maxItems": 2,
45
- "uniqueItems": true,
46
- "description": "Specifies which tool or tools will be used to get diagnostics. If you choose both \"merlin\" and \"bsb\", merlin will be used while editing and bsb when saving.",
5
+ "ocaml.sandbox": {
6
+ "type": "object",
7
+ "default": null,
8
+ "description": "Determines where to find the sandbox for a given project",
47
9
  "scope": 3
48
10
  },
49
- "reason.format.width": {
11
+ "ocaml.server.extraEnv": {
50
12
  "type": [
51
- "number",
52
- null
13
+ "null",
14
+ "object"
53
15
  ],
54
16
  "default": null,
55
- "description": "Set the width of lines when formatting code with refmt",
17
+ "markdownDescription": "Extra environment variables that will be passed to OCaml LSP executable. Useful for debugging purposes mostly.",
56
18
  "scope": 3
57
19
  },
58
- "reason.path.bsb": {
59
- "type": "string",
60
- "default": "./node_modules/bs-platform/lib/bsb.exe",
61
- "description": "The path to the `bsb` binary.",
20
+ "ocaml.dune.autoDetect": {
21
+ "type": "boolean",
22
+ "default": true,
23
+ "description": "Controls whether dune tasks should be automatically detected.",
62
24
  "scope": 3
63
25
  },
64
- "reason.path.ocamlfind": {
26
+ "ocaml.trace.server": {
27
+ "description": "Controls the logging output of the language server. Valid settings are `off`, `messages`, or `verbose`.",
65
28
  "type": "string",
66
- "default": "ocamlfind",
67
- "description": "The path to the `ocamlfind` binary.",
29
+ "enum": [
30
+ "off",
31
+ "messages",
32
+ "verbose"
33
+ ],
34
+ "default": "off",
68
35
  "scope": 3
69
36
  },
70
- "reason.path.esy": {
71
- "type": "string",
72
- "default": "esy",
73
- "description": "The path to the `esy` binary.",
37
+ "ocaml.useOcamlEnv": {
38
+ "type": "boolean",
39
+ "default": true,
40
+ "description": "Controls whether to use ocaml-env for opam commands from OCaml for Windows.",
74
41
  "scope": 3
75
42
  },
76
- "reason.path.env": {
77
- "type": "string",
78
- "default": "env",
79
- "description": "The path to the `env` command which prints the language server environment for debugging editor issues.",
43
+ "ocaml.terminal.shell.linux": {
44
+ "description": "The path of the shell that the sandbox terminal uses on Linux",
45
+ "type": [
46
+ "string",
47
+ "null"
48
+ ],
49
+ "default": null,
80
50
  "scope": 3
81
51
  },
82
- "reason.path.ocamlmerlin": {
83
- "type": "string",
84
- "default": "ocamlmerlin",
85
- "description": "The path to the `ocamlmerlin` binary.",
52
+ "ocaml.terminal.shell.osx": {
53
+ "description": "The path of the shell that the sandbox terminal uses on macOS",
54
+ "type": [
55
+ "string",
56
+ "null"
57
+ ],
58
+ "default": null,
86
59
  "scope": 3
87
60
  },
88
- "reason.path.ocpindent": {
89
- "type": "string",
90
- "default": "ocp-indent",
91
- "description": "The path to the `ocp-indent` binary.",
61
+ "ocaml.terminal.shell.windows": {
62
+ "description": "The path of the shell that the sandbox terminal uses on Windows",
63
+ "type": [
64
+ "string",
65
+ "null"
66
+ ],
67
+ "default": null,
92
68
  "scope": 3
93
69
  },
94
- "reason.path.opam": {
95
- "type": "string",
96
- "default": "opam",
97
- "description": "The path to the `opam` binary.",
70
+ "ocaml.terminal.shellArgs.linux": {
71
+ "description": "The command line arguments that the sandbox terminal uses on Linux",
72
+ "type": [
73
+ "array",
74
+ "null"
75
+ ],
76
+ "items": "string",
77
+ "default": null,
98
78
  "scope": 3
99
79
  },
100
- "reason.path.rebuild": {
101
- "type": "string",
102
- "default": "rebuild",
103
- "description": "The path to the `rebuild` binary.",
80
+ "ocaml.terminal.shellArgs.osx": {
81
+ "description": "The command line arguments that the sandbox terminal uses on macOS",
82
+ "type": [
83
+ "array",
84
+ "null"
85
+ ],
86
+ "items": "string",
87
+ "default": null,
104
88
  "scope": 3
105
89
  },
106
- "reason.path.refmt": {
107
- "type": "string",
108
- "default": "refmt",
109
- "description": "The path to the `refmt` binary.",
90
+ "ocaml.terminal.shellArgs.windows": {
91
+ "description": "The command line arguments that the sandbox terminal uses on Window",
92
+ "type": [
93
+ "array",
94
+ "null"
95
+ ],
96
+ "items": "string",
97
+ "default": null,
110
98
  "scope": 3
111
99
  },
112
- "reason.path.refmterr": {
113
- "type": "string",
114
- "default": "refmterr",
115
- "description": "The path to the `refmterr` binary.",
100
+ "ocaml.repl.path": {
101
+ "description": "The path of the REPL that the extension uses",
102
+ "type": [
103
+ "string",
104
+ "null"
105
+ ],
106
+ "default": null,
116
107
  "scope": 3
117
108
  },
118
- "reason.path.rtop": {
119
- "type": "string",
120
- "default": "rtop",
121
- "description": "The path to the `rtop` binary.",
109
+ "ocaml.repl.args": {
110
+ "description": "The REPL arguments that the extension uses",
111
+ "type": [
112
+ "array",
113
+ "null"
114
+ ],
115
+ "items": "string",
116
+ "default": null,
122
117
  "scope": 3
123
118
  },
124
- "reason.server.languages": {
125
- "type": "array",
126
- "items": {
127
- "enum": [
128
- "ocaml",
129
- "reason"
130
- ]
131
- },
132
- "default": [
133
- "ocaml",
134
- "reason"
135
- ],
136
- "maxItems": 2,
137
- "uniqueItems": true,
138
- "description": "The list of languages enable support for in the language server.",
119
+ "ocaml.repl.useUtop": {
120
+ "type": "boolean",
121
+ "default": true,
122
+ "description": "Controls whether to use Utop for the REPL if it is installed in the current switch.",
139
123
  "scope": 3
140
124
  }
141
125
  }
@@ -4,227 +4,177 @@ var fileTypes = [
4
4
  ];
5
5
  var patterns = [
6
6
  {
7
- include: "#directive"
7
+ include: "#comments"
8
+ },
9
+ {
10
+ include: "#lines"
11
+ },
12
+ {
13
+ comment: "comma separator",
14
+ name: "keyword.other.ocamlbuild punctuation.comma punctuation.separator.comma",
15
+ match: ","
8
16
  }
9
17
  ];
10
18
  var repository = {
11
- directive: {
19
+ comments: {
20
+ comment: "line comment",
21
+ name: "comment.line.ocamlbuild",
22
+ begin: "#",
23
+ end: "$"
24
+ },
25
+ lines: {
26
+ begin: "^[[:space:]]*",
27
+ end: "(:)|$",
28
+ endCaptures: {
29
+ "1": {
30
+ name: "keyword.operator.ocamlbuild"
31
+ }
32
+ },
33
+ patterns: [
34
+ {
35
+ include: "#expressions"
36
+ }
37
+ ]
38
+ },
39
+ expressions: {
40
+ comment: "glob expressions",
12
41
  patterns: [
13
42
  {
14
- begin: "",
15
- end: "(?=[:])",
43
+ begin: "<",
44
+ end: ">",
45
+ beginCaptures: [
46
+ {
47
+ name: "keyword.operator.ocamlbuild"
48
+ }
49
+ ],
50
+ endCaptures: [
51
+ {
52
+ name: "keyword.operator.ocamlbuild"
53
+ }
54
+ ],
55
+ name: "string.quoted.double.ocamlbuild",
16
56
  patterns: [
17
57
  {
18
- begin: "(<)",
19
- end: "(>)",
20
- beginCaptures: {
21
- "1": {
22
- name: "keyword.other"
23
- }
24
- },
25
- endCaptures: {
26
- "1": {
27
- name: "keyword.other"
28
- }
29
- },
30
- patterns: [
31
- {
32
- match: "(?<![\\-\\+])(?:(\\b[[:word:]]+\\b)|([*]+))[[:space:]]*([\\./])?",
33
- captures: {
34
- "1": {
35
- name: "string.double"
36
- },
37
- "2": {
38
- name: "constant.language"
39
- },
40
- "3": {
41
- name: "keyword.other"
42
- }
43
- }
44
- }
45
- ]
46
- },
58
+ include: "#patterns"
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ comment: "quoted string",
64
+ name: "string.quoted.double.ocamlbuild",
65
+ begin: "\"",
66
+ end: "\""
67
+ },
68
+ {
69
+ comment: "boolean",
70
+ name: "constant.language.ocamlbuild",
71
+ match: "\\b(true|false)\\b"
72
+ },
73
+ {
74
+ comment: "operators",
75
+ name: "keyword.operator.ocamlbuild",
76
+ match: "\\b(or|and|not)\\b"
77
+ },
78
+ {
79
+ include: "#variables"
80
+ },
81
+ {
82
+ include: "$self"
83
+ }
84
+ ]
85
+ },
86
+ patterns: {
87
+ comment: "glob patterns",
88
+ patterns: [
89
+ {
90
+ name: "keyword.operator.ocamlbuild",
91
+ match: "\\?"
92
+ },
93
+ {
94
+ name: "constant.language.ocamlbuild",
95
+ match: "\\*"
96
+ },
97
+ {
98
+ begin: "{",
99
+ end: "}",
100
+ beginCaptures: [
47
101
  {
48
- match: "\\b(true)\\b",
49
- name: "constant.language"
50
- },
102
+ name: "keyword.operator.ocamlbuild"
103
+ }
104
+ ],
105
+ endCaptures: [
106
+ {
107
+ name: "keyword.operator.ocamlbuild"
108
+ }
109
+ ],
110
+ patterns: [
51
111
  {
52
- match: "\\b(and|not)\\b",
53
- name: "keyword.other"
112
+ name: "keyword.operator.ocamlbuild",
113
+ match: ","
54
114
  },
55
115
  {
56
- begin: "\"",
57
- end: "\"",
58
- applyEndPatternLast: true,
59
- name: "string.double"
116
+ include: "#patterns"
60
117
  }
61
118
  ]
62
119
  },
63
120
  {
64
- begin: "(:)",
65
- end: "$",
66
- beginCaptures: {
121
+ begin: "\\[\\^?",
122
+ end: "\\]",
123
+ beginCaptures: [
124
+ {
125
+ name: "keyword.operator.ocamlbuild"
126
+ }
127
+ ],
128
+ endCaptures: [
129
+ {
130
+ name: "keyword.operator.ocamlbuild"
131
+ }
132
+ ]
133
+ }
134
+ ]
135
+ },
136
+ variables: {
137
+ comment: "pattern variables",
138
+ patterns: [
139
+ {
140
+ match: "(%)\\([^:)]*\\)",
141
+ captures: {
67
142
  "1": {
68
- name: "keyword.other"
143
+ name: "keyword.operator.ocamlbuild"
69
144
  }
70
145
  },
71
146
  patterns: [
72
147
  {
73
- begin: "\\b(for-pack)\\b(\\()",
74
- end: "(\\))",
75
- beginCaptures: {
76
- "1": {
77
- name: "variable.parameter"
78
- },
79
- "2": {
80
- name: "keyword.other"
81
- }
82
- },
83
- endCaptures: {
84
- "1": {
85
- name: "keyword.other"
86
- }
87
- },
88
- patterns: [
89
- {
90
- match: "(?<![\\-\\+])\\b([[:alpha:]][[:word:]]*)\\b[[:space:]]*(\\.)?",
91
- captures: {
92
- "1": {
93
- name: "entity.name.class"
94
- },
95
- "2": {
96
- name: "keyword.other"
97
- }
98
- }
99
- }
100
- ]
101
- },
102
- {
103
- begin: "\\b(package)\\b(\\()",
104
- end: "(\\))",
105
- beginCaptures: {
106
- "1": {
107
- name: "storage.type"
108
- },
109
- "2": {
110
- name: "keyword.other"
111
- }
112
- },
113
- endCaptures: {
114
- "1": {
115
- name: "keyword.other"
116
- }
117
- },
118
- patterns: [
119
- {
120
- match: "(?<![\\-\\+])\\b([[:lower:]][[:word:]]*)\\b[[:space:]]*(\\.)?",
121
- captures: {
122
- "1": {
123
- name: "entity.name.class"
124
- },
125
- "2": {
126
- name: "keyword.other"
127
- }
128
- }
129
- }
130
- ]
131
- },
132
- {
133
- begin: "\\b(warn[[:word:]]*)\\b(\\()",
134
- end: "(\\))",
135
- beginCaptures: {
136
- "1": {
137
- name: "keyword.other"
138
- },
139
- "2": {
140
- name: "keyword.other"
141
- }
142
- },
143
- endCaptures: {
144
- "1": {
145
- name: "keyword.other"
146
- }
147
- },
148
- patterns: [
149
- {
150
- match: "\\b([[:upper:]][[:word:]]*)\\b",
151
- name: "constant.language"
152
- },
153
- {
154
- match: "([\\-\\+])\\b(?:([[:digit:]]+)|([[:lower:]][[:word:]]*))\\b",
155
- captures: {
156
- "1": {
157
- name: "keyword.other"
158
- },
159
- "2": {
160
- name: "constant.language"
161
- },
162
- "3": {
163
- name: "variable.parameter"
164
- }
165
- }
166
- }
167
- ]
168
- },
169
- {
170
- match: "([\\-\\+])?\\b(?:([[:digit:]]+)|([[:lower:]][[:word:]]*))\\b",
171
- captures: {
172
- "1": {
173
- name: "keyword.other"
174
- },
175
- "2": {
176
- name: "constant.language"
177
- },
178
- "3": {
179
- name: "variable.parameter"
180
- },
181
- "4": {
182
- name: "keyword.other"
183
- }
184
- },
185
- endCaptures: {
186
- "1": {
187
- name: "keyword.other"
188
- }
189
- }
148
+ include: "#expressions"
149
+ }
150
+ ]
151
+ },
152
+ {
153
+ begin: "(%)\\([^:]*(:)",
154
+ end: "\\)",
155
+ beginCaptures: {
156
+ "1": {
157
+ name: "keyword.operator.ocamlbuild"
190
158
  },
159
+ "2": {
160
+ name: "keyword.operator.ocamlbuild"
161
+ }
162
+ },
163
+ patterns: [
191
164
  {
192
- begin: "(\\()",
193
- end: "(\\))",
194
- beginCaptures: {
195
- "1": {
196
- name: "keyword.other"
197
- }
198
- },
199
- endCaptures: {
200
- "1": {
201
- name: "keyword.other"
202
- }
203
- },
204
- patterns: [
205
- {
206
- match: "([\\-\\+])\\b(?:([[:digit:]]+)|([[:lower:]][[:word:]]*))\\b",
207
- captures: {
208
- "1": {
209
- name: "keyword.other"
210
- },
211
- "2": {
212
- name: "constant.language"
213
- },
214
- "3": {
215
- name: "variable.parameter"
216
- }
217
- }
218
- }
219
- ]
165
+ include: "#expressions"
220
166
  }
221
167
  ]
168
+ },
169
+ {
170
+ name: "keyword.operator.ocamlbuild",
171
+ match: "%"
222
172
  }
223
173
  ]
224
174
  }
225
175
  };
226
176
  var information_for_contributors = [
227
- "This file has been converted from https://github.com/reasonml-editor/vscode-reasonml/blob/master/",
177
+ "This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
228
178
  "If you want to provide a fix or improvement, please create a pull request against the original repository.",
229
179
  "Once accepted there, we are happy to receive an update request."
230
180
  ];
@@ -0,0 +1,54 @@
1
+ var scopeName = "source.ocaml.ocamldoc";
2
+ var name = "comment.other.ocamldoc";
3
+ var fileTypes = [
4
+ "mld"
5
+ ];
6
+ var patterns = [
7
+ {
8
+ name: "comment.other.ocamldoc",
9
+ begin: "",
10
+ end: "",
11
+ patterns: [
12
+ {
13
+ include: "#markup"
14
+ }
15
+ ]
16
+ }
17
+ ];
18
+ var repository = {
19
+ markup: {
20
+ patterns: [
21
+ {
22
+ comment: "ocamldoc documentation tag",
23
+ name: "keyword.doc-tag.ocamldoc",
24
+ match: "\\@[[:lower:]]+"
25
+ },
26
+ {
27
+ comment: "embedded ocaml source",
28
+ begin: "(?<!\\\\)\\[",
29
+ end: "(?<!\\\\)\\]",
30
+ contentName: "source.embedded.ocamldoc",
31
+ patterns: [
32
+ {
33
+ include: "source.ocaml"
34
+ }
35
+ ]
36
+ }
37
+ ]
38
+ }
39
+ };
40
+ var information_for_contributors = [
41
+ "This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
42
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
43
+ "Once accepted there, we are happy to receive an update request."
44
+ ];
45
+ var ocamldoc = {
46
+ scopeName: scopeName,
47
+ name: name,
48
+ fileTypes: fileTypes,
49
+ patterns: patterns,
50
+ repository: repository,
51
+ information_for_contributors: information_for_contributors
52
+ };
53
+
54
+ export { ocamldoc as default, fileTypes, information_for_contributors, name, patterns, repository, scopeName };