@codingame/monaco-editor-wrapper 3.4.1 → 3.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.
Files changed (81) hide show
  1. package/dist/{HTML (Eex).js → HTML (Eex)2.js} +0 -0
  2. package/dist/JavaScript.tmLanguage.js +13 -7
  3. package/dist/JavaScriptReact.tmLanguage.js +13 -7
  4. package/dist/Scala.tmLanguage.js +1 -1
  5. package/dist/TypeScript.tmLanguage.js +13 -7
  6. package/dist/TypeScriptReact.tmLanguage.js +13 -7
  7. package/dist/atd.js +90 -94
  8. package/dist/atd2.js +94 -90
  9. package/dist/c.js +8 -0
  10. package/dist/cpp.js +8 -0
  11. package/dist/cpp.tmLanguage.js +150 -112
  12. package/dist/cpptools.js +133 -40
  13. package/dist/css.worker.js +1 -1
  14. package/dist/cuda-cpp.js +8 -0
  15. package/dist/d.js +3157 -84
  16. package/dist/d2.js +84 -3157
  17. package/dist/d3.js +4 -2
  18. package/dist/dart.js +510 -83
  19. package/dist/dart2.js +83 -510
  20. package/dist/dart3.js +0 -6
  21. package/dist/diet.js +740 -82
  22. package/dist/diet2.js +82 -740
  23. package/dist/django-html.js +155 -0
  24. package/dist/django-html.tmLanguage.js +715 -0
  25. package/dist/django-txt.js +155 -0
  26. package/dist/django-txt.tmLanguage.js +269 -0
  27. package/dist/dml.js +155 -76
  28. package/dist/dml2.js +76 -155
  29. package/dist/dune-project.js +469 -53
  30. package/dist/dune-project2.js +53 -469
  31. package/dist/dune-workspace.js +287 -54
  32. package/dist/dune-workspace2.js +54 -287
  33. package/dist/dune.js +2948 -51
  34. package/dist/dune2.js +51 -2948
  35. package/dist/elixir.js +2335 -63
  36. package/dist/elixir2.js +63 -2335
  37. package/dist/features/cssContribution.js +1 -4
  38. package/dist/features/extensionConfigurations.js +25 -122
  39. package/dist/features/htmlContribution.js +4 -18
  40. package/dist/features/jsonContribution.js +1 -8
  41. package/dist/features/typescriptContribution.js +4 -8
  42. package/dist/{html (eex)2.js → html (eex).js} +0 -0
  43. package/dist/html-html.code-snippets.js +20 -0
  44. package/dist/html.worker.js +1 -1
  45. package/dist/index.js +2178 -1355
  46. package/dist/index2.js +1362 -2186
  47. package/dist/java2.js +32 -9
  48. package/dist/json.worker.js +1 -1
  49. package/dist/lua2.js +35 -0
  50. package/dist/main.js +322 -1420
  51. package/dist/ocaml.interface.js +273 -95
  52. package/dist/ocaml.interface2.js +95 -273
  53. package/dist/ocaml.js +884 -95
  54. package/dist/ocaml2.js +95 -884
  55. package/dist/omnisharp.js +6 -0
  56. package/dist/php-php.code-snippets.js +2 -0
  57. package/dist/r.js +657 -81
  58. package/dist/r2.js +81 -657
  59. package/dist/scalameta.js +5 -4
  60. package/dist/sdl.js +150 -78
  61. package/dist/sdl2.js +78 -150
  62. package/dist/semanticdb.js +62 -0
  63. package/dist/solidity.js +1172 -56
  64. package/dist/solidity2.js +56 -1172
  65. package/dist/solidity3.js +6 -5
  66. package/dist/svelte.svelte-vscode-javascript.js +45 -0
  67. package/dist/svelte.svelte-vscode-typescript.js +43 -0
  68. package/dist/svelte.svelte-vscode.js +8 -1
  69. package/dist/svelte.tmLanguage.src.yaml.js +3 -3
  70. package/dist/theme-defaults~light_vs.js +3 -2
  71. package/dist/ts.worker.js +1 -1
  72. package/dist/typescript-basics-typescript.code-snippets.js +1 -0
  73. package/dist/vim.js +8 -8
  74. package/dist/vscode-django-filters.js +340 -0
  75. package/dist/vscode-django.js +37 -0
  76. package/dist/vscode-python.js +4 -8
  77. package/dist/vue-sugarss.js +390 -54
  78. package/dist/vue-sugarss2.js +54 -390
  79. package/dist/worker.js +1 -3
  80. package/package.json +29 -26
  81. 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,38 @@ 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-typescript-language-features" */
9
-
10
- /* webpackMode: "lazy" */
11
- '../typescript-language-features.js').then(module => module)).default,
12
- 'angular': async () => (await import(
13
- /* webpackChunkName: "configuration-registration-angular" */
14
-
15
- /* webpackMode: "lazy" */
16
- '../angular.js').then(module => module)).default,
17
- 'd': async () => (await import(
18
- /* webpackChunkName: "configuration-registration-d" */
19
-
20
- /* webpackMode: "lazy" */
21
- '../d3.js').then(module => module)).default,
22
- 'dart': async () => (await import(
23
- /* webpackChunkName: "configuration-registration-dart" */
24
-
25
- /* webpackMode: "lazy" */
26
- '../dart3.js').then(module => module)).default,
27
- 'haskell': async () => (await import(
28
- /* webpackChunkName: "configuration-registration-haskell" */
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,
31
+ 'vscode-django': async () => (await import( /* webpackChunkName: "configuration-registration-vscode-django" */ /* webpackMode: "lazy" */'../vscode-django.js').then(module => module)).default
127
32
  };
128
33
 
129
34
  async function loadConfigurationForExtension(extensionId) {
130
35
  const loader$1 = loader[extensionId];
131
-
132
36
  if (loader$1 == null) {
133
37
  throw new Error("Unknown extension ".concat(extensionId));
134
38
  }
135
-
136
39
  const configuration = await loader$1();
137
40
  configurationRegistry.registerConfigurations(configuration);
138
41
  }
@@ -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 '../index.js';
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();