@codingame/monaco-editor-wrapper 1.4.0 → 1.4.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.
@@ -0,0 +1,53 @@
1
+ var $schema = "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json";
2
+ var name = "build-target";
3
+ var scopeName = "source.buildtarget";
4
+ var extensions = [
5
+ ".metals-buildtarget"
6
+ ];
7
+ var patterns = [
8
+ {
9
+ include: "#general"
10
+ }
11
+ ];
12
+ var repository = {
13
+ general: {
14
+ patterns: [
15
+ {
16
+ name: "strong",
17
+ match: "^\\S.*$"
18
+ },
19
+ {
20
+ name: "invalid.illegal",
21
+ match: " .*NO SOURCE.*"
22
+ },
23
+ {
24
+ name: "invalid.illegal",
25
+ match: " .*MISSING.*"
26
+ },
27
+ {
28
+ name: "invalid.illegal",
29
+ match: " .* NOT SUPPORTED"
30
+ },
31
+ {
32
+ name: "entity.other",
33
+ match: " .*"
34
+ }
35
+ ]
36
+ }
37
+ };
38
+ var information_for_contributors = [
39
+ "This file has been converted from https://github.com/scalameta/metals-vscode/blob/master/",
40
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
41
+ "Once accepted there, we are happy to receive an update request."
42
+ ];
43
+ var buildtarget = {
44
+ $schema: $schema,
45
+ name: name,
46
+ scopeName: scopeName,
47
+ extensions: extensions,
48
+ patterns: patterns,
49
+ repository: repository,
50
+ information_for_contributors: information_for_contributors
51
+ };
52
+
53
+ export { $schema, buildtarget as default, extensions, information_for_contributors, name, patterns, repository, scopeName };
package/dist/cpptools.js CHANGED
@@ -2303,6 +2303,15 @@ var cpptools = [
2303
2303
  ]
2304
2304
  },
2305
2305
  "scope": 4
2306
+ },
2307
+ "C_Cpp.debugShortcut": {
2308
+ "type": "boolean",
2309
+ "default": false,
2310
+ "tags": [
2311
+ "experimental"
2312
+ ],
2313
+ "description": "Show icon for 'Debug and Run' in shortcut menu bar",
2314
+ "scope": 3
2306
2315
  }
2307
2316
  }
2308
2317
  }
package/dist/d2.js CHANGED
@@ -276,7 +276,7 @@ var repository = {
276
276
  patterns: [
277
277
  {
278
278
  match: "\\^\\^|\\+\\+|--|(?<!/)\\+(?!/)|-|~|(?<!/)\\*(?!/)|(?<![+*/])/(?![+*/])|%",
279
- name: "keyword.operator.add.d"
279
+ name: "keyword.operator.numeric.d"
280
280
  }
281
281
  ]
282
282
  },
@@ -1631,7 +1631,7 @@ var repository = {
1631
1631
  "enum-declaration": {
1632
1632
  patterns: [
1633
1633
  {
1634
- begin: "\\b(enum)\\b\\s+",
1634
+ begin: "\\b(enum)\\b\\s+(?=.*[=;])",
1635
1635
  end: "([A-Za-z_][\\w_\\d]*)\\s*(?=;|=|\\()(;)?",
1636
1636
  beginCaptures: {
1637
1637
  "1": {
package/dist/dcf.js CHANGED
@@ -21,7 +21,7 @@ var repository = {
21
21
  patterns: [
22
22
  {
23
23
  comment: "keyword",
24
- match: "^[A-Z][a-zA-Z-]+:",
24
+ match: "^(?!(Authors@R:|linters:|exclusions:)).*?:",
25
25
  name: "keyword.control"
26
26
  }
27
27
  ]
@@ -61,13 +61,13 @@ var repository = {
61
61
  ],
62
62
  repository: {
63
63
  "code-block-r": {
64
- begin: "^(Authors@R:)",
64
+ begin: "^(Authors@R:|linters:|exclusions:)",
65
65
  beginCaptures: {
66
66
  "1": {
67
67
  name: "keyword.control"
68
68
  }
69
69
  },
70
- end: "(?<=\\))\\s*$",
70
+ end: "^(?!\\s)",
71
71
  contentName: "meta.embedded.block.r",
72
72
  patterns: [
73
73
  {
@@ -64,7 +64,10 @@ const loader = {
64
64
  '../vscode-R.js').then(module => module)).default,
65
65
  'vscode-groovy': async () => (await import(
66
66
  /* webpackChunkName: "configuration-registration-vscode-groovy" */
67
- '../vscode-groovy.js').then(module => module)).default
67
+ '../vscode-groovy.js').then(module => module)).default,
68
+ 'solargraph': async () => (await import(
69
+ /* webpackChunkName: "configuration-registration-solargraph" */
70
+ '../solargraph.js').then(module => module)).default
68
71
  };
69
72
 
70
73
  const configurationRegistry = monaco.extra.Registry.as(monaco.extra.ConfigurationExtensions.Configuration);
@@ -104,13 +104,94 @@ var folding = {
104
104
  end: "^\\s*//\\s*#?endregion\\b"
105
105
  }
106
106
  };
107
+ var wordPattern = {
108
+ pattern: "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)"
109
+ };
110
+ var indentationRules = {
111
+ decreaseIndentPattern: {
112
+ pattern: "^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"
113
+ },
114
+ increaseIndentPattern: {
115
+ pattern: "^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"
116
+ },
117
+ unIndentedLinePattern: {
118
+ pattern: "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
119
+ }
120
+ };
121
+ var onEnterRules = [
122
+ {
123
+ beforeText: {
124
+ pattern: "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
125
+ },
126
+ afterText: {
127
+ pattern: "^\\s*\\*/$"
128
+ },
129
+ action: {
130
+ indent: "indentOutdent",
131
+ appendText: " * "
132
+ }
133
+ },
134
+ {
135
+ beforeText: {
136
+ pattern: "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
137
+ },
138
+ action: {
139
+ indent: "none",
140
+ appendText: " * "
141
+ }
142
+ },
143
+ {
144
+ beforeText: {
145
+ pattern: "^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
146
+ },
147
+ previousLineText: {
148
+ pattern: "(?=^(\\s*(/\\*\\*|\\*)).*)(?=(?!(\\s*\\*/)))"
149
+ },
150
+ action: {
151
+ indent: "none",
152
+ appendText: "* "
153
+ }
154
+ },
155
+ {
156
+ beforeText: {
157
+ pattern: "^(\\t|[ ])*[ ]\\*/\\s*$"
158
+ },
159
+ action: {
160
+ indent: "none",
161
+ removeText: 1
162
+ }
163
+ },
164
+ {
165
+ beforeText: {
166
+ pattern: "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$"
167
+ },
168
+ action: {
169
+ indent: "none",
170
+ removeText: 1
171
+ }
172
+ },
173
+ {
174
+ beforeText: {
175
+ pattern: "^\\s*(\\bcase\\s.+:|\\bdefault:)$"
176
+ },
177
+ afterText: {
178
+ pattern: "^(?!\\s*(\\bcase\\b|\\bdefault\\b))"
179
+ },
180
+ action: {
181
+ indent: "indent"
182
+ }
183
+ }
184
+ ];
107
185
  var javascript = {
108
186
  comments: comments,
109
187
  brackets: brackets,
110
188
  autoClosingPairs: autoClosingPairs,
111
189
  surroundingPairs: surroundingPairs,
112
190
  autoCloseBefore: autoCloseBefore,
113
- folding: folding
191
+ folding: folding,
192
+ wordPattern: wordPattern,
193
+ indentationRules: indentationRules,
194
+ onEnterRules: onEnterRules
114
195
  };
115
196
 
116
- export { autoCloseBefore, autoClosingPairs, brackets, comments, javascript as default, folding, surroundingPairs };
197
+ export { autoCloseBefore, autoClosingPairs, brackets, comments, javascript as default, folding, indentationRules, onEnterRules, surroundingPairs, wordPattern };
@@ -104,13 +104,94 @@ var folding = {
104
104
  end: "^\\s*//\\s*#?endregion\\b"
105
105
  }
106
106
  };
107
+ var wordPattern = {
108
+ pattern: "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)"
109
+ };
110
+ var indentationRules = {
111
+ decreaseIndentPattern: {
112
+ pattern: "^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"
113
+ },
114
+ increaseIndentPattern: {
115
+ pattern: "^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"
116
+ },
117
+ unIndentedLinePattern: {
118
+ pattern: "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
119
+ }
120
+ };
121
+ var onEnterRules = [
122
+ {
123
+ beforeText: {
124
+ pattern: "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
125
+ },
126
+ afterText: {
127
+ pattern: "^\\s*\\*/$"
128
+ },
129
+ action: {
130
+ indent: "indentOutdent",
131
+ appendText: " * "
132
+ }
133
+ },
134
+ {
135
+ beforeText: {
136
+ pattern: "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
137
+ },
138
+ action: {
139
+ indent: "none",
140
+ appendText: " * "
141
+ }
142
+ },
143
+ {
144
+ beforeText: {
145
+ pattern: "^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
146
+ },
147
+ previousLineText: {
148
+ pattern: "(?=^(\\s*(/\\*\\*|\\*)).*)(?=(?!(\\s*\\*/)))"
149
+ },
150
+ action: {
151
+ indent: "none",
152
+ appendText: "* "
153
+ }
154
+ },
155
+ {
156
+ beforeText: {
157
+ pattern: "^(\\t|[ ])*[ ]\\*/\\s*$"
158
+ },
159
+ action: {
160
+ indent: "none",
161
+ removeText: 1
162
+ }
163
+ },
164
+ {
165
+ beforeText: {
166
+ pattern: "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$"
167
+ },
168
+ action: {
169
+ indent: "none",
170
+ removeText: 1
171
+ }
172
+ },
173
+ {
174
+ beforeText: {
175
+ pattern: "^\\s*(\\bcase\\s.+:|\\bdefault:)$"
176
+ },
177
+ afterText: {
178
+ pattern: "^(?!\\s*(\\bcase\\b|\\bdefault\\b))"
179
+ },
180
+ action: {
181
+ indent: "indent"
182
+ }
183
+ }
184
+ ];
107
185
  var javascriptreact = {
108
186
  comments: comments,
109
187
  brackets: brackets,
110
188
  autoClosingPairs: autoClosingPairs,
111
189
  surroundingPairs: surroundingPairs,
112
190
  autoCloseBefore: autoCloseBefore,
113
- folding: folding
191
+ folding: folding,
192
+ wordPattern: wordPattern,
193
+ indentationRules: indentationRules,
194
+ onEnterRules: onEnterRules
114
195
  };
115
196
 
116
- export { autoCloseBefore, autoClosingPairs, brackets, comments, javascriptreact as default, folding, surroundingPairs };
197
+ export { autoCloseBefore, autoClosingPairs, brackets, comments, javascriptreact as default, folding, indentationRules, onEnterRules, surroundingPairs, wordPattern };
package/dist/jsx-tags.js CHANGED
@@ -98,12 +98,61 @@ var surroundingPairs = [
98
98
  "\""
99
99
  ]
100
100
  ];
101
+ var wordPattern = {
102
+ pattern: "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\$\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:'\"\\,\\.\\<\\>\\/\\s]+)"
103
+ };
104
+ var onEnterRules = [
105
+ {
106
+ beforeText: {
107
+ pattern: "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w\\-.\\d]*)([^/>]*(?!/)>)[^<]*$",
108
+ flags: "i"
109
+ },
110
+ afterText: {
111
+ pattern: "^<\\/([_:\\w][_:\\w-.\\d]*)\\s*>$",
112
+ flags: "i"
113
+ },
114
+ action: {
115
+ indent: "indentOutdent"
116
+ }
117
+ },
118
+ {
119
+ beforeText: {
120
+ pattern: "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w\\-.\\d]*)([^/>]*(?!/)>)[^<]*$",
121
+ flags: "i"
122
+ },
123
+ action: {
124
+ indent: "indent"
125
+ }
126
+ },
127
+ {
128
+ beforeText: {
129
+ pattern: "^>$"
130
+ },
131
+ afterText: {
132
+ pattern: "/^<\\/([_:\\w][_:\\w-.\\d]*)\\s*>$",
133
+ flags: "i"
134
+ },
135
+ action: {
136
+ indent: "indentOutdent"
137
+ }
138
+ },
139
+ {
140
+ beforeText: {
141
+ pattern: "^>$"
142
+ },
143
+ action: {
144
+ indent: "indent"
145
+ }
146
+ }
147
+ ];
101
148
  var jsxTags = {
102
149
  comments: comments,
103
150
  brackets: brackets,
104
151
  colorizedBracketPairs: colorizedBracketPairs,
105
152
  autoClosingPairs: autoClosingPairs,
106
- surroundingPairs: surroundingPairs
153
+ surroundingPairs: surroundingPairs,
154
+ wordPattern: wordPattern,
155
+ onEnterRules: onEnterRules
107
156
  };
108
157
 
109
- export { autoClosingPairs, brackets, colorizedBracketPairs, comments, jsxTags as default, surroundingPairs };
158
+ export { autoClosingPairs, brackets, colorizedBracketPairs, comments, jsxTags as default, onEnterRules, surroundingPairs, wordPattern };
package/dist/main.js CHANGED
@@ -825,6 +825,10 @@ var rawGrammars = [
825
825
  "language": "tasty",
826
826
  "scopeName": "source.tasty"
827
827
  },
828
+ {
829
+ "language": "buildtarget",
830
+ "scopeName": "source.buildtarget"
831
+ },
828
832
  {
829
833
  "language": "COBOL",
830
834
  "scopeName": "source.cobol",
@@ -1244,6 +1248,9 @@ const loader$2 = {
1244
1248
  'source.tasty': async () => (await import(
1245
1249
  /* webpackChunkName: "grammar-source-tasty" */
1246
1250
  './tasty.js').then(module => module)).default,
1251
+ 'source.buildtarget': async () => (await import(
1252
+ /* webpackChunkName: "grammar-source-buildtarget" */
1253
+ './buildtarget.js').then(module => module)).default,
1247
1254
  'source.cobol': async () => (await import(
1248
1255
  /* webpackChunkName: "grammar-source-cobol" */
1249
1256
  './COBOL.tmLanguage.js').then(module => module)).default,
@@ -3523,6 +3530,12 @@ var textMateLanguages = [
3523
3530
  ".tasty-decoded"
3524
3531
  ]
3525
3532
  },
3533
+ {
3534
+ "id": "buildtarget",
3535
+ "extensions": [
3536
+ ".metals-buildtarget"
3537
+ ]
3538
+ },
3526
3539
  {
3527
3540
  "id": "COBOL",
3528
3541
  "extensions": [
@@ -3790,7 +3803,8 @@ var textMateLanguages = [
3790
3803
  "R DCF"
3791
3804
  ],
3792
3805
  "filenames": [
3793
- "DESCRIPTION"
3806
+ "DESCRIPTION",
3807
+ ".lintr"
3794
3808
  ]
3795
3809
  },
3796
3810
  {
package/dist/scalameta.js CHANGED
@@ -4,7 +4,7 @@ var scalameta = [
4
4
  "properties": {
5
5
  "metals.serverVersion": {
6
6
  "type": "string",
7
- "default": "0.11.1",
7
+ "default": "0.11.1+97-0ef9a93b-SNAPSHOT",
8
8
  "markdownDescription": "The version of the Metals server artifact. Requires reloading the window.\n\n**Change only if you know what you're doing**",
9
9
  "scope": 3
10
10
  },
@@ -51,7 +51,7 @@ var scalameta = [
51
51
  "metals.javaHome": {
52
52
  "type": "string",
53
53
  "scope": 6,
54
- "markdownDescription": "Optional path to the Java home directory. Requires reloading the window.\n\nDefaults to the most recent Java version between 8 and 11 (inclusive) computed by the `locate-java-home` npm package."
54
+ "markdownDescription": "Optional path to the Java home directory. Requires reloading the window.\n\nDefaults to the most recent Java version between 8 and 17 (inclusive) computed by the `locate-java-home` npm package."
55
55
  },
56
56
  "metals.sbtScript": {
57
57
  "type": "string",
@@ -0,0 +1,192 @@
1
+ var solargraph = [
2
+ {
3
+ "title": "Solargraph settings for Ruby",
4
+ "properties": {
5
+ "solargraph.transport": {
6
+ "type": "string",
7
+ "default": "socket",
8
+ "enum": [
9
+ "socket",
10
+ "stdio",
11
+ "external"
12
+ ],
13
+ "description": "The type of transport to use.",
14
+ "scope": 3
15
+ },
16
+ "solargraph.externalServer": {
17
+ "type": "object",
18
+ "description": "The host and port to use for external transports. (Ignored for stdio and socket transports.)",
19
+ "properties": {
20
+ "host": {
21
+ "type": "string",
22
+ "default": "localhost"
23
+ },
24
+ "port": {
25
+ "type": "integer",
26
+ "default": 7658
27
+ }
28
+ },
29
+ "default": {
30
+ "host": "localhost",
31
+ "port": 7658
32
+ },
33
+ "scope": 3
34
+ },
35
+ "solargraph.commandPath": {
36
+ "type": "string",
37
+ "default": "solargraph",
38
+ "description": "Path to the solargraph command. Set this to an absolute path to select from multiple installed Ruby versions.",
39
+ "scope": 4
40
+ },
41
+ "solargraph.useBundler": {
42
+ "type": "boolean",
43
+ "description": "Use `bundle exec` to run solargraph. (If this is true, the solargraph.commandPath setting is ignored.)",
44
+ "default": false,
45
+ "scope": 3
46
+ },
47
+ "solargraph.bundlerPath": {
48
+ "type": "string",
49
+ "description": "Path to the bundle executable, defaults to 'bundle'. Needs to be an absolute path for the 'bundle' exec/shim",
50
+ "default": "bundle",
51
+ "scope": 4
52
+ },
53
+ "solargraph.checkGemVersion": {
54
+ "type": "boolean",
55
+ "description": "Automatically check if a new version of the Solargraph gem is available.",
56
+ "default": true,
57
+ "enum": [
58
+ true,
59
+ false
60
+ ],
61
+ "scope": 3
62
+ },
63
+ "solargraph.completion": {
64
+ "type": [
65
+ "boolean"
66
+ ],
67
+ "description": "Enable completion",
68
+ "default": true,
69
+ "enum": [
70
+ true,
71
+ false
72
+ ],
73
+ "scope": 3
74
+ },
75
+ "solargraph.hover": {
76
+ "type": [
77
+ "boolean"
78
+ ],
79
+ "description": "Enable hover",
80
+ "default": true,
81
+ "enum": [
82
+ true,
83
+ false
84
+ ],
85
+ "scope": 3
86
+ },
87
+ "solargraph.diagnostics": {
88
+ "type": [
89
+ "boolean"
90
+ ],
91
+ "description": "Enable diagnostics",
92
+ "default": true,
93
+ "enum": [
94
+ true,
95
+ false
96
+ ],
97
+ "scope": 3
98
+ },
99
+ "solargraph.autoformat": {
100
+ "type": [
101
+ "boolean"
102
+ ],
103
+ "description": "Enable automatic formatting while typing (WARNING: experimental)",
104
+ "default": false,
105
+ "enum": [
106
+ true,
107
+ false
108
+ ],
109
+ "scope": 3
110
+ },
111
+ "solargraph.formatting": {
112
+ "type": [
113
+ "boolean"
114
+ ],
115
+ "description": "Enable document formatting",
116
+ "enum": [
117
+ true,
118
+ false
119
+ ],
120
+ "default": false,
121
+ "scope": 3
122
+ },
123
+ "solargraph.symbols": {
124
+ "type": [
125
+ "boolean"
126
+ ],
127
+ "description": "Enable symbols",
128
+ "enum": [
129
+ true,
130
+ false
131
+ ],
132
+ "default": true,
133
+ "scope": 3
134
+ },
135
+ "solargraph.definitions": {
136
+ "type": [
137
+ "boolean"
138
+ ],
139
+ "description": "Enable definitions (go to, etc.)",
140
+ "enum": [
141
+ true,
142
+ false
143
+ ],
144
+ "default": true,
145
+ "scope": 3
146
+ },
147
+ "solargraph.rename": {
148
+ "type": [
149
+ "boolean"
150
+ ],
151
+ "description": "Enable symbol renaming",
152
+ "enum": [
153
+ true,
154
+ false
155
+ ],
156
+ "default": true,
157
+ "scope": 3
158
+ },
159
+ "solargraph.references": {
160
+ "type": [
161
+ "boolean"
162
+ ],
163
+ "description": "Enable finding references",
164
+ "enum": [
165
+ true,
166
+ false
167
+ ],
168
+ "default": true,
169
+ "scope": 3
170
+ },
171
+ "solargraph.folding": {
172
+ "type": "boolean",
173
+ "description": "Enable folding ranges",
174
+ "default": true,
175
+ "scope": 3
176
+ },
177
+ "solargraph.logLevel": {
178
+ "type": "string",
179
+ "description": "Level of debug info to log. `warn` is least and `debug` is most.",
180
+ "enum": [
181
+ "warn",
182
+ "info",
183
+ "debug"
184
+ ],
185
+ "default": "warn",
186
+ "scope": 3
187
+ }
188
+ }
189
+ }
190
+ ];
191
+
192
+ export { solargraph as default };