@codingame/monaco-editor-wrapper 3.4.1 → 3.4.2
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/{HTML (Eex).js → HTML (Eex)2.js} +0 -0
- package/dist/atd.js +90 -94
- package/dist/atd2.js +94 -90
- package/dist/css.worker.js +1 -1
- package/dist/d.js +3157 -84
- package/dist/d2.js +84 -3157
- package/dist/dart.js +510 -83
- package/dist/dart2.js +83 -510
- package/dist/diet.js +740 -82
- package/dist/diet2.js +82 -740
- package/dist/dml.js +155 -76
- package/dist/dml2.js +76 -155
- package/dist/dune-project.js +469 -53
- package/dist/dune-project2.js +53 -469
- package/dist/dune-workspace.js +287 -54
- package/dist/dune-workspace2.js +54 -287
- package/dist/dune.js +2948 -51
- package/dist/dune2.js +51 -2948
- package/dist/elixir.js +2335 -63
- package/dist/elixir2.js +63 -2335
- package/dist/features/cssContribution.js +1 -4
- package/dist/features/extensionConfigurations.js +24 -122
- package/dist/features/htmlContribution.js +4 -18
- package/dist/features/jsonContribution.js +1 -8
- package/dist/features/typescriptContribution.js +4 -8
- package/dist/{html (eex)2.js → html (eex).js} +0 -0
- package/dist/html.worker.js +1 -1
- package/dist/index.js +2178 -1355
- package/dist/index2.js +1354 -2186
- package/dist/json.worker.js +1 -1
- package/dist/main.js +270 -1417
- package/dist/ocaml.interface.js +273 -95
- package/dist/ocaml.interface2.js +95 -273
- package/dist/ocaml.js +884 -95
- package/dist/ocaml2.js +95 -884
- package/dist/r.js +657 -81
- package/dist/r2.js +81 -657
- package/dist/sdl.js +150 -78
- package/dist/sdl2.js +78 -150
- package/dist/solidity.js +1172 -56
- package/dist/solidity2.js +56 -1172
- package/dist/ts.worker.js +1 -1
- package/dist/vim.js +8 -8
- package/dist/vue-sugarss.js +390 -54
- package/dist/vue-sugarss2.js +54 -390
- package/dist/worker.js +1 -3
- package/package.json +29 -26
- package/stats.html +44 -34
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import 'monaco-editor/esm/vs/language/css/monaco.contribution';
|
|
2
2
|
import { r as registerWorkerLoader } from '../worker.js';
|
|
3
3
|
|
|
4
|
-
const workerLoader = async () => (await import(
|
|
5
|
-
/* webpackChunkName: "MonacoHtmlWorker" */
|
|
6
|
-
'../css.worker.js').then(module => module)).default;
|
|
7
|
-
|
|
4
|
+
const workerLoader = async () => (await import( /* webpackChunkName: "MonacoHtmlWorker" */'../css.worker.js').then(module => module)).default;
|
|
8
5
|
registerWorkerLoader('css', workerLoader);
|
|
9
6
|
registerWorkerLoader('less', workerLoader);
|
|
10
7
|
registerWorkerLoader('scss', workerLoader);
|
|
@@ -4,135 +4,37 @@ import { configurationRegistry } from 'vscode/service-override/configuration';
|
|
|
4
4
|
|
|
5
5
|
/* eslint-disable */
|
|
6
6
|
const loader = {
|
|
7
|
-
'typescript-language-features': async () => (await import(
|
|
8
|
-
/* webpackChunkName: "configuration-registration-
|
|
9
|
-
|
|
10
|
-
/* webpackMode: "lazy" */
|
|
11
|
-
'
|
|
12
|
-
'
|
|
13
|
-
/* webpackChunkName: "configuration-registration-
|
|
14
|
-
|
|
15
|
-
/* webpackMode: "lazy" */
|
|
16
|
-
'../
|
|
17
|
-
'
|
|
18
|
-
/* webpackChunkName: "configuration-registration-
|
|
19
|
-
|
|
20
|
-
/* webpackMode: "lazy" */
|
|
21
|
-
'../
|
|
22
|
-
'
|
|
23
|
-
/* webpackChunkName: "configuration-registration-
|
|
24
|
-
|
|
25
|
-
/* webpackMode: "lazy" */
|
|
26
|
-
'../
|
|
27
|
-
'
|
|
28
|
-
/* webpackChunkName: "configuration-registration-
|
|
29
|
-
|
|
30
|
-
/* webpackMode: "lazy" */
|
|
31
|
-
'../haskell2.js').then(module => module)).default,
|
|
32
|
-
'ocaml': async () => (await import(
|
|
33
|
-
/* webpackChunkName: "configuration-registration-ocaml" */
|
|
34
|
-
|
|
35
|
-
/* webpackMode: "lazy" */
|
|
36
|
-
'../ocaml3.js').then(module => module)).default,
|
|
37
|
-
'pascal': async () => (await import(
|
|
38
|
-
/* webpackChunkName: "configuration-registration-pascal" */
|
|
39
|
-
|
|
40
|
-
/* webpackMode: "lazy" */
|
|
41
|
-
'../pascal2.js').then(module => module)).default,
|
|
42
|
-
'scalameta': async () => (await import(
|
|
43
|
-
/* webpackChunkName: "configuration-registration-scalameta" */
|
|
44
|
-
|
|
45
|
-
/* webpackMode: "lazy" */
|
|
46
|
-
'../scalameta.js').then(module => module)).default,
|
|
47
|
-
'cobol': async () => (await import(
|
|
48
|
-
/* webpackChunkName: "configuration-registration-cobol" */
|
|
49
|
-
|
|
50
|
-
/* webpackMode: "lazy" */
|
|
51
|
-
'../cobol2.js').then(module => module)).default,
|
|
52
|
-
'elixir': async () => (await import(
|
|
53
|
-
/* webpackChunkName: "configuration-registration-elixir" */
|
|
54
|
-
|
|
55
|
-
/* webpackMode: "lazy" */
|
|
56
|
-
'../elixir3.js').then(module => module)).default,
|
|
57
|
-
'erlang': async () => (await import(
|
|
58
|
-
/* webpackChunkName: "configuration-registration-erlang" */
|
|
59
|
-
|
|
60
|
-
/* webpackMode: "lazy" */
|
|
61
|
-
'../erlang2.js').then(module => module)).default,
|
|
62
|
-
'svlangserver': async () => (await import(
|
|
63
|
-
/* webpackChunkName: "configuration-registration-svlangserver" */
|
|
64
|
-
|
|
65
|
-
/* webpackMode: "lazy" */
|
|
66
|
-
'../svlangserver.js').then(module => module)).default,
|
|
67
|
-
'postgresql': async () => (await import(
|
|
68
|
-
/* webpackChunkName: "configuration-registration-postgresql" */
|
|
69
|
-
|
|
70
|
-
/* webpackMode: "lazy" */
|
|
71
|
-
'../postgresql.js').then(module => module)).default,
|
|
72
|
-
'java': async () => (await import(
|
|
73
|
-
/* webpackChunkName: "configuration-registration-java" */
|
|
74
|
-
|
|
75
|
-
/* webpackMode: "lazy" */
|
|
76
|
-
'../java2.js').then(module => module)).default,
|
|
77
|
-
'lua': async () => (await import(
|
|
78
|
-
/* webpackChunkName: "configuration-registration-lua" */
|
|
79
|
-
|
|
80
|
-
/* webpackMode: "lazy" */
|
|
81
|
-
'../lua2.js').then(module => module)).default,
|
|
82
|
-
'cpptools': async () => (await import(
|
|
83
|
-
/* webpackChunkName: "configuration-registration-cpptools" */
|
|
84
|
-
|
|
85
|
-
/* webpackMode: "lazy" */
|
|
86
|
-
'../cpptools.js').then(module => module)).default,
|
|
87
|
-
'omnisharp': async () => (await import(
|
|
88
|
-
/* webpackChunkName: "configuration-registration-omnisharp" */
|
|
89
|
-
|
|
90
|
-
/* webpackMode: "lazy" */
|
|
91
|
-
'../omnisharp.js').then(module => module)).default,
|
|
92
|
-
'vscode-python': async () => (await import(
|
|
93
|
-
/* webpackChunkName: "configuration-registration-vscode-python" */
|
|
94
|
-
|
|
95
|
-
/* webpackMode: "lazy" */
|
|
96
|
-
'../vscode-python.js').then(module => module)).default,
|
|
97
|
-
'vscode-R': async () => (await import(
|
|
98
|
-
/* webpackChunkName: "configuration-registration-vscode-R" */
|
|
99
|
-
|
|
100
|
-
/* webpackMode: "lazy" */
|
|
101
|
-
'../vscode-R.js').then(module => module)).default,
|
|
102
|
-
'vscode-groovy': async () => (await import(
|
|
103
|
-
/* webpackChunkName: "configuration-registration-vscode-groovy" */
|
|
104
|
-
|
|
105
|
-
/* webpackMode: "lazy" */
|
|
106
|
-
'../vscode-groovy.js').then(module => module)).default,
|
|
107
|
-
'solargraph': async () => (await import(
|
|
108
|
-
/* webpackChunkName: "configuration-registration-solargraph" */
|
|
109
|
-
|
|
110
|
-
/* webpackMode: "lazy" */
|
|
111
|
-
'../solargraph.js').then(module => module)).default,
|
|
112
|
-
'solidity': async () => (await import(
|
|
113
|
-
/* webpackChunkName: "configuration-registration-solidity" */
|
|
114
|
-
|
|
115
|
-
/* webpackMode: "lazy" */
|
|
116
|
-
'../solidity3.js').then(module => module)).default,
|
|
117
|
-
'vetur': async () => (await import(
|
|
118
|
-
/* webpackChunkName: "configuration-registration-vetur" */
|
|
119
|
-
|
|
120
|
-
/* webpackMode: "lazy" */
|
|
121
|
-
'../vetur.js').then(module => module)).default,
|
|
122
|
-
'svelte.svelte-vscode': async () => (await import(
|
|
123
|
-
/* webpackChunkName: "configuration-registration-svelte.svelte-vscode" */
|
|
124
|
-
|
|
125
|
-
/* webpackMode: "lazy" */
|
|
126
|
-
'../svelte.svelte-vscode.js').then(module => module)).default
|
|
7
|
+
'typescript-language-features': async () => (await import( /* webpackChunkName: "configuration-registration-typescript-language-features" */ /* webpackMode: "lazy" */'../typescript-language-features.js').then(module => module)).default,
|
|
8
|
+
'angular': async () => (await import( /* webpackChunkName: "configuration-registration-angular" */ /* webpackMode: "lazy" */'../angular.js').then(module => module)).default,
|
|
9
|
+
'd': async () => (await import( /* webpackChunkName: "configuration-registration-d" */ /* webpackMode: "lazy" */'../d3.js').then(module => module)).default,
|
|
10
|
+
'dart': async () => (await import( /* webpackChunkName: "configuration-registration-dart" */ /* webpackMode: "lazy" */'../dart3.js').then(module => module)).default,
|
|
11
|
+
'haskell': async () => (await import( /* webpackChunkName: "configuration-registration-haskell" */ /* webpackMode: "lazy" */'../haskell2.js').then(module => module)).default,
|
|
12
|
+
'ocaml': async () => (await import( /* webpackChunkName: "configuration-registration-ocaml" */ /* webpackMode: "lazy" */'../ocaml3.js').then(module => module)).default,
|
|
13
|
+
'pascal': async () => (await import( /* webpackChunkName: "configuration-registration-pascal" */ /* webpackMode: "lazy" */'../pascal2.js').then(module => module)).default,
|
|
14
|
+
'scalameta': async () => (await import( /* webpackChunkName: "configuration-registration-scalameta" */ /* webpackMode: "lazy" */'../scalameta.js').then(module => module)).default,
|
|
15
|
+
'cobol': async () => (await import( /* webpackChunkName: "configuration-registration-cobol" */ /* webpackMode: "lazy" */'../cobol2.js').then(module => module)).default,
|
|
16
|
+
'elixir': async () => (await import( /* webpackChunkName: "configuration-registration-elixir" */ /* webpackMode: "lazy" */'../elixir3.js').then(module => module)).default,
|
|
17
|
+
'erlang': async () => (await import( /* webpackChunkName: "configuration-registration-erlang" */ /* webpackMode: "lazy" */'../erlang2.js').then(module => module)).default,
|
|
18
|
+
'svlangserver': async () => (await import( /* webpackChunkName: "configuration-registration-svlangserver" */ /* webpackMode: "lazy" */'../svlangserver.js').then(module => module)).default,
|
|
19
|
+
'postgresql': async () => (await import( /* webpackChunkName: "configuration-registration-postgresql" */ /* webpackMode: "lazy" */'../postgresql.js').then(module => module)).default,
|
|
20
|
+
'java': async () => (await import( /* webpackChunkName: "configuration-registration-java" */ /* webpackMode: "lazy" */'../java2.js').then(module => module)).default,
|
|
21
|
+
'lua': async () => (await import( /* webpackChunkName: "configuration-registration-lua" */ /* webpackMode: "lazy" */'../lua2.js').then(module => module)).default,
|
|
22
|
+
'cpptools': async () => (await import( /* webpackChunkName: "configuration-registration-cpptools" */ /* webpackMode: "lazy" */'../cpptools.js').then(module => module)).default,
|
|
23
|
+
'omnisharp': async () => (await import( /* webpackChunkName: "configuration-registration-omnisharp" */ /* webpackMode: "lazy" */'../omnisharp.js').then(module => module)).default,
|
|
24
|
+
'vscode-python': async () => (await import( /* webpackChunkName: "configuration-registration-vscode-python" */ /* webpackMode: "lazy" */'../vscode-python.js').then(module => module)).default,
|
|
25
|
+
'vscode-R': async () => (await import( /* webpackChunkName: "configuration-registration-vscode-R" */ /* webpackMode: "lazy" */'../vscode-R.js').then(module => module)).default,
|
|
26
|
+
'vscode-groovy': async () => (await import( /* webpackChunkName: "configuration-registration-vscode-groovy" */ /* webpackMode: "lazy" */'../vscode-groovy.js').then(module => module)).default,
|
|
27
|
+
'solargraph': async () => (await import( /* webpackChunkName: "configuration-registration-solargraph" */ /* webpackMode: "lazy" */'../solargraph.js').then(module => module)).default,
|
|
28
|
+
'solidity': async () => (await import( /* webpackChunkName: "configuration-registration-solidity" */ /* webpackMode: "lazy" */'../solidity3.js').then(module => module)).default,
|
|
29
|
+
'vetur': async () => (await import( /* webpackChunkName: "configuration-registration-vetur" */ /* webpackMode: "lazy" */'../vetur.js').then(module => module)).default,
|
|
30
|
+
'svelte.svelte-vscode': async () => (await import( /* webpackChunkName: "configuration-registration-svelte.svelte-vscode" */ /* webpackMode: "lazy" */'../svelte.svelte-vscode.js').then(module => module)).default
|
|
127
31
|
};
|
|
128
32
|
|
|
129
33
|
async function loadConfigurationForExtension(extensionId) {
|
|
130
34
|
const loader$1 = loader[extensionId];
|
|
131
|
-
|
|
132
35
|
if (loader$1 == null) {
|
|
133
36
|
throw new Error("Unknown extension ".concat(extensionId));
|
|
134
37
|
}
|
|
135
|
-
|
|
136
38
|
const configuration = await loader$1();
|
|
137
39
|
configurationRegistry.registerConfigurations(configuration);
|
|
138
40
|
}
|
|
@@ -4,21 +4,18 @@ import { ConfigurationScope } from 'vscode/service-override/configuration';
|
|
|
4
4
|
import { DisposableStore } from 'vscode/monaco';
|
|
5
5
|
import { StandaloneServices, ICodeEditorService } from 'vscode/services';
|
|
6
6
|
import { r as registerWorkerLoader } from '../worker.js';
|
|
7
|
-
import { r as registerConfigurations, g as getConfiguration, o as onConfigurationChanged } from '../
|
|
8
|
-
|
|
9
|
-
const workerLoader = async () => (await import(
|
|
10
|
-
/* webpackChunkName: "MonacoHtmlWorker" */
|
|
11
|
-
'../html.worker.js').then(module => module)).default;
|
|
7
|
+
import { r as registerConfigurations, g as getConfiguration, o as onConfigurationChanged } from '../index2.js';
|
|
12
8
|
|
|
9
|
+
const workerLoader = async () => (await import( /* webpackChunkName: "MonacoHtmlWorker" */'../html.worker.js').then(module => module)).default;
|
|
13
10
|
registerWorkerLoader('html', workerLoader);
|
|
14
11
|
registerWorkerLoader('handlebars', workerLoader);
|
|
15
12
|
registerWorkerLoader('razor', workerLoader);
|
|
13
|
+
|
|
16
14
|
/**
|
|
17
15
|
* Start autoclosing html tags
|
|
18
16
|
* Inspired by https://github.com/microsoft/monaco-editor/issues/221
|
|
19
17
|
* and https://github.com/microsoft/vscode/blob/5943dac8ba32df1963a1760c660b3f16f5fcdc51/extensions/html-language-features/client/src/autoInsertion.ts
|
|
20
18
|
*/
|
|
21
|
-
|
|
22
19
|
registerConfigurations([{
|
|
23
20
|
id: 'html',
|
|
24
21
|
order: 20,
|
|
@@ -43,7 +40,6 @@ setTimeout(() => {
|
|
|
43
40
|
}
|
|
44
41
|
});
|
|
45
42
|
});
|
|
46
|
-
|
|
47
43
|
function autoCloseHtmlTags(editor) {
|
|
48
44
|
const disposableStore = new DisposableStore();
|
|
49
45
|
let timeout;
|
|
@@ -59,17 +55,13 @@ function autoCloseHtmlTags(editor) {
|
|
|
59
55
|
window.clearTimeout(timeout);
|
|
60
56
|
timeout = undefined;
|
|
61
57
|
}
|
|
62
|
-
|
|
63
58
|
if (!autoClosingTags || e.isRedoing || e.isUndoing) {
|
|
64
59
|
return;
|
|
65
60
|
}
|
|
66
|
-
|
|
67
61
|
const model = editor.getModel();
|
|
68
|
-
|
|
69
62
|
if (model == null || model.getLanguageId() !== 'html') {
|
|
70
63
|
return;
|
|
71
64
|
}
|
|
72
|
-
|
|
73
65
|
timeout = window.setTimeout(() => {
|
|
74
66
|
for (const {
|
|
75
67
|
range,
|
|
@@ -77,11 +69,9 @@ function autoCloseHtmlTags(editor) {
|
|
|
77
69
|
text
|
|
78
70
|
} of e.changes) {
|
|
79
71
|
var _untilLine$match;
|
|
80
|
-
|
|
81
72
|
if (!text.endsWith('>')) {
|
|
82
73
|
continue;
|
|
83
74
|
}
|
|
84
|
-
|
|
85
75
|
const untilLine = model.getValueInRange({
|
|
86
76
|
startLineNumber: 1,
|
|
87
77
|
startColumn: 1,
|
|
@@ -89,11 +79,9 @@ function autoCloseHtmlTags(editor) {
|
|
|
89
79
|
endColumn: range.endColumn + rangeLength + 1
|
|
90
80
|
});
|
|
91
81
|
const enclosingTag = (_untilLine$match = untilLine.match(/.*<(\w+)>$/)) === null || _untilLine$match === void 0 ? void 0 : _untilLine$match[1];
|
|
92
|
-
|
|
93
82
|
if (enclosingTag == null || enclosingTag.includes('/')) {
|
|
94
83
|
return;
|
|
95
84
|
}
|
|
96
|
-
|
|
97
85
|
const newRange = new monaco.Range(range.endLineNumber, range.endColumn + rangeLength + 1, range.endLineNumber, range.endColumn + rangeLength + enclosingTag.length + 1);
|
|
98
86
|
const selections = editor.getSelections();
|
|
99
87
|
const rest = model.getValueInRange(newRange);
|
|
@@ -107,19 +95,17 @@ function autoCloseHtmlTags(editor) {
|
|
|
107
95
|
}));
|
|
108
96
|
return disposableStore;
|
|
109
97
|
}
|
|
110
|
-
|
|
111
98
|
setTimeout(() => {
|
|
112
99
|
// In a timeout so the service can be overriden
|
|
113
100
|
const codeEditors = StandaloneServices.get(ICodeEditorService).listCodeEditors();
|
|
114
|
-
|
|
115
101
|
for (const editor of codeEditors) {
|
|
116
102
|
autoCloseHtmlTags(editor);
|
|
117
103
|
}
|
|
118
|
-
|
|
119
104
|
monaco.editor.onDidCreateEditor(editor => {
|
|
120
105
|
autoCloseHtmlTags(editor);
|
|
121
106
|
});
|
|
122
107
|
});
|
|
108
|
+
|
|
123
109
|
/**
|
|
124
110
|
* End autoclosing html tags
|
|
125
111
|
*/
|
|
@@ -5,7 +5,6 @@ import { Disposable } from 'vscode';
|
|
|
5
5
|
import { r as registerWorkerLoader } from '../worker.js';
|
|
6
6
|
|
|
7
7
|
const customSchemas = [];
|
|
8
|
-
|
|
9
8
|
function updateDiagnosticsOptions() {
|
|
10
9
|
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
11
10
|
comments: 'ignore',
|
|
@@ -20,21 +19,15 @@ function updateDiagnosticsOptions() {
|
|
|
20
19
|
}, ...customSchemas]
|
|
21
20
|
});
|
|
22
21
|
}
|
|
23
|
-
|
|
24
22
|
updateDiagnosticsOptions();
|
|
25
23
|
onDidChangeJsonSchema(updateDiagnosticsOptions);
|
|
26
|
-
|
|
27
|
-
const workerLoader = async () => (await import(
|
|
28
|
-
/* webpackChunkName: "MonacoJsonWorker" */
|
|
29
|
-
'../json.worker.js').then(module => module)).default;
|
|
30
|
-
|
|
24
|
+
const workerLoader = async () => (await import( /* webpackChunkName: "MonacoJsonWorker" */'../json.worker.js').then(module => module)).default;
|
|
31
25
|
registerWorkerLoader('json', workerLoader);
|
|
32
26
|
function addJsonSchema(schema) {
|
|
33
27
|
customSchemas.push(schema);
|
|
34
28
|
updateDiagnosticsOptions();
|
|
35
29
|
return new Disposable(() => {
|
|
36
30
|
const index = customSchemas.indexOf(schema);
|
|
37
|
-
|
|
38
31
|
if (index >= 0) {
|
|
39
32
|
customSchemas.splice(index, 1);
|
|
40
33
|
updateDiagnosticsOptions();
|