@codingame/monaco-editor-wrapper 1.4.0 → 1.5.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.
package/dist/java-java.js CHANGED
@@ -1,5 +1,8 @@
1
1
  var main = {
2
- prefix: "main",
2
+ prefix: [
3
+ "main",
4
+ "psvm"
5
+ ],
3
6
  body: [
4
7
  "public static void main(String[] args) {",
5
8
  "\t$0",
package/dist/java2.js CHANGED
@@ -46,8 +46,9 @@ var java = [
46
46
  "scope": 3
47
47
  },
48
48
  "java.configuration.checkProjectSettingsExclusions": {
49
+ "deprecationMessage": "Please use 'java.import.generatesMetadataFilesAtProjectRoot' to control whether to generate the project metadata files at the project root. And use 'files.exclude' to control whether to hide the project metadata files from the file explorer.",
49
50
  "type": "boolean",
50
- "default": true,
51
+ "default": false,
51
52
  "description": "Controls whether to exclude extension-generated project settings files (.project, .classpath, .factorypath, .settings/) from the file explorer.",
52
53
  "scope": 3
53
54
  },
@@ -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 };