@codingame/monaco-editor-wrapper 1.1.5 → 1.4.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 (69) hide show
  1. package/dist/Groovy2.js +28 -0
  2. package/dist/JavaScript.tmLanguage.js +22 -1
  3. package/dist/JavaScriptReact.tmLanguage.js +5915 -0
  4. package/dist/TypeScript.tmLanguage.js +22 -1
  5. package/dist/TypeScriptReact.tmLanguage.js +5915 -0
  6. package/dist/angular.js +56 -0
  7. package/dist/aspnetcorerazor.tmLanguage.js +65 -83
  8. package/dist/clojure.tmLanguage.js +11 -15
  9. package/dist/cobol2.js +80 -0
  10. package/dist/cpptools.js +2311 -0
  11. package/dist/csharp.tmLanguage.js +5 -5
  12. package/dist/css.worker.js +1 -1
  13. package/dist/d2.js +92 -98
  14. package/dist/d3.js +526 -0
  15. package/dist/dart3.js +966 -0
  16. package/dist/elixir3.js +40 -0
  17. package/dist/erlang2.js +92 -0
  18. package/dist/{cssContribution.js → features/cssContribution.js} +2 -2
  19. package/dist/features/extensionConfigurations.d.ts +1 -0
  20. package/dist/features/extensionConfigurations.js +142 -0
  21. package/dist/{htmlContribution.js → features/htmlContribution.js} +2 -2
  22. package/dist/{jsonContribution.js → features/jsonContribution.js} +3 -3
  23. package/dist/features/mutualizedExtensionConfigurations.d.ts +1 -0
  24. package/dist/features/mutualizedExtensionConfigurations.js +4857 -0
  25. package/dist/features/typescriptContribution.d.ts +4 -0
  26. package/dist/{typescriptContribution.js → features/typescriptContribution.js} +31 -3
  27. package/dist/fsharp.tmLanguage.js +10 -1
  28. package/dist/haskell2.js +16 -0
  29. package/dist/html.tmLanguage2.js +11 -1
  30. package/dist/html.worker.js +1 -1
  31. package/dist/java2.js +704 -0
  32. package/dist/json.worker.js +1 -1
  33. package/dist/jvm-bytecode-verbose.js +1231 -0
  34. package/dist/jvm-bytecode.js +565 -0
  35. package/dist/languages/extensions/configurationLoader.d.ts +20 -2
  36. package/dist/languages/extensions/extensionConfigurationLoader.d.ts +3 -0
  37. package/dist/languages/extensions/grammarLoader.d.ts +2 -92921
  38. package/dist/languages/extensions/languageConfigurationLoader.d.ts +3 -0
  39. package/dist/languages/extensions/snippetLoader.d.ts +3 -5618
  40. package/dist/lua.tmLanguage.js +12 -2
  41. package/dist/lua2.js +1511 -0
  42. package/dist/main.js +273 -122
  43. package/dist/markdown.tmLanguage.js +91 -14
  44. package/dist/ocaml3.js +145 -0
  45. package/dist/omnisharp.js +522 -0
  46. package/dist/pascal.tmLanguage.js +2 -2
  47. package/dist/pascal2.js +26 -0
  48. package/dist/php.tmLanguage.js +161 -96
  49. package/dist/postgresql.js +75 -0
  50. package/dist/r2.js +17 -29
  51. package/dist/rmd.js +8 -1
  52. package/dist/scalameta.js +177 -0
  53. package/dist/sql.js +96 -2
  54. package/dist/sql.tmLanguage.js +532 -0
  55. package/dist/tasty.js +72 -0
  56. package/dist/ts.worker.js +1 -1
  57. package/dist/typescript-language-features.js +998 -0
  58. package/dist/verilog2.js +94 -0
  59. package/dist/vscode-R.js +513 -0
  60. package/dist/vscode-groovy.js +28 -0
  61. package/dist/vscode-python.js +677 -0
  62. package/dist/worker.js +1 -1
  63. package/package.json +12 -11
  64. package/stats.html +205 -795
  65. package/dist/SQL.plist.js +0 -482
  66. package/dist/extensionConfigurations.js +0 -9475
  67. package/dist/html (eex).js +0 -31
  68. package/dist/pgsql-sql.js +0 -21
  69. package/dist/r.tmLanguage.js +0 -551
@@ -0,0 +1,40 @@
1
+ var elixir = [
2
+ {
3
+ "type": "object",
4
+ "title": "Elixir settings",
5
+ "properties": {
6
+ "elixir.useElixirSense": {
7
+ "type": "boolean",
8
+ "default": true,
9
+ "description": "Use elixir-sense instead of alchemist-server",
10
+ "scope": 3
11
+ },
12
+ "elixir.autoSpawnElixirSenseServers": {
13
+ "type": "boolean",
14
+ "default": true,
15
+ "description": "Automatically handle spawning of elixir-sense servers for each folder in the workspace",
16
+ "scope": 3
17
+ },
18
+ "elixir.command": {
19
+ "type": "string",
20
+ "default": "elixir",
21
+ "description": "Command to be run for launching the elixir_sense server providing intellisense features. Defaults to 'elixir'",
22
+ "scope": 3
23
+ },
24
+ "elixir.elixirEnv": {
25
+ "type": "string",
26
+ "default": "dev",
27
+ "description": "Project environment",
28
+ "scope": 3
29
+ },
30
+ "elixir.projectPath": {
31
+ "type": "string",
32
+ "default": "",
33
+ "description": "The path to the mix project in the folder structure of your project",
34
+ "scope": 3
35
+ }
36
+ }
37
+ }
38
+ ];
39
+
40
+ export { elixir as default };
@@ -0,0 +1,92 @@
1
+ var erlang = [
2
+ {
3
+ "type": "object",
4
+ "title": "Erlang",
5
+ "properties": {
6
+ "erlang.erlangPath": {
7
+ "type": "string",
8
+ "default": "",
9
+ "description": "Directory where erl/escript are located. Leave empty to use default.",
10
+ "scope": 3
11
+ },
12
+ "erlang.rebarPath": {
13
+ "type": "string",
14
+ "default": "",
15
+ "description": "Directory where rebar/rebar3 are located. Leave empty to use default.",
16
+ "scope": 3
17
+ },
18
+ "erlang.rebarBuildArgs": {
19
+ "type": "array",
20
+ "items": {
21
+ "type": "string",
22
+ "title": "argument",
23
+ "default": ""
24
+ },
25
+ "default": [
26
+ "compile"
27
+ ],
28
+ "description": "Arguments passed to rebar/rebar3 build command.",
29
+ "scope": 3
30
+ },
31
+ "erlang.includePaths": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "string",
35
+ "title": "path",
36
+ "default": ""
37
+ },
38
+ "default": [],
39
+ "description": "Include paths used when extension analyses the sources. Paths are read from rebar.config, and also standard set of paths is used. This setting is for special cases when the default behaviour is not enough.",
40
+ "scope": 3
41
+ },
42
+ "erlang.linting": {
43
+ "type": "boolean",
44
+ "default": true,
45
+ "description": "Enable/disable dynamic validation of opened Erlang source files.",
46
+ "scope": 3
47
+ },
48
+ "erlang.codeLensEnabled": {
49
+ "type": "boolean",
50
+ "default": false,
51
+ "description": "Enable/disable references CodeLens on functions.",
52
+ "scope": 3
53
+ },
54
+ "erlang.verbose": {
55
+ "type": "boolean",
56
+ "description": "Enable/disable technical traces for use in the extension development.",
57
+ "default": false,
58
+ "scope": 3
59
+ },
60
+ "erlang.debuggerRunMode": {
61
+ "type": "string",
62
+ "default": "external",
63
+ "description": "Specifies how to run vscode debugadapter. Useful in extension development.",
64
+ "enum": [
65
+ "external",
66
+ "server",
67
+ "inline"
68
+ ],
69
+ "enumDescriptions": [
70
+ "external : launch debug adapter in separate process",
71
+ "server: launch debugadapter as a socket based server",
72
+ "inline: launch debugadapter in current process"
73
+ ],
74
+ "scope": 3
75
+ },
76
+ "erlang.eep48Help": {
77
+ "type": "boolean",
78
+ "default": true,
79
+ "description": "Enable/disable help based on Erlang documentation storage added in OTP 23. The setting is ignored in earlier versions.",
80
+ "scope": 3
81
+ },
82
+ "erlang.formattingLineLength": {
83
+ "type": "number",
84
+ "default": 100,
85
+ "description": "Maximum line length for document formatting.",
86
+ "scope": 3
87
+ }
88
+ }
89
+ }
90
+ ];
91
+
92
+ export { erlang as default };
@@ -1,9 +1,9 @@
1
1
  import 'monaco-editor/esm/vs/language/css/monaco.contribution';
2
- import { r as registerWorkerLoader } from './worker.js';
2
+ import { r as registerWorkerLoader } from '../worker.js';
3
3
 
4
4
  const workerLoader = async () => (await import(
5
5
  /* webpackChunkName: "MonacoHtmlWorker" */
6
- './css.worker.js').then(module => module)).default;
6
+ '../css.worker.js').then(module => module)).default;
7
7
 
8
8
  registerWorkerLoader('css', workerLoader);
9
9
  registerWorkerLoader('less', workerLoader);
@@ -1,3 +1,4 @@
1
+ export declare function loadConfigurationForExtension(extensionId: string): Promise<void>;
1
2
  /**
2
3
  * comes from https://github.com/microsoft/vscode/blob/16d0a319b28caa4b6cf4e6801fd508282b7533e0/src/vs/workbench/contrib/files/browser/files.contribution.ts#L132
3
4
  * Required by the Lua language server
@@ -0,0 +1,142 @@
1
+ import { _ as _objectSpread2 } from '../_rollupPluginBabelHelpers.js';
2
+ import * as monaco from 'monaco-editor/esm/vs/editor/edcore.main';
3
+
4
+ // Generated file, do not modify
5
+
6
+ /* eslint-disable */
7
+ const loader = {
8
+ 'typescript-language-features': async () => (await import(
9
+ /* webpackChunkName: "configuration-registration-typescript-language-features" */
10
+ '../typescript-language-features.js').then(module => module)).default,
11
+ 'angular': async () => (await import(
12
+ /* webpackChunkName: "configuration-registration-angular" */
13
+ '../angular.js').then(module => module)).default,
14
+ 'd': async () => (await import(
15
+ /* webpackChunkName: "configuration-registration-d" */
16
+ '../d3.js').then(module => module)).default,
17
+ 'dart': async () => (await import(
18
+ /* webpackChunkName: "configuration-registration-dart" */
19
+ '../dart3.js').then(module => module)).default,
20
+ 'haskell': async () => (await import(
21
+ /* webpackChunkName: "configuration-registration-haskell" */
22
+ '../haskell2.js').then(module => module)).default,
23
+ 'ocaml': async () => (await import(
24
+ /* webpackChunkName: "configuration-registration-ocaml" */
25
+ '../ocaml3.js').then(module => module)).default,
26
+ 'pascal': async () => (await import(
27
+ /* webpackChunkName: "configuration-registration-pascal" */
28
+ '../pascal2.js').then(module => module)).default,
29
+ 'scalameta': async () => (await import(
30
+ /* webpackChunkName: "configuration-registration-scalameta" */
31
+ '../scalameta.js').then(module => module)).default,
32
+ 'cobol': async () => (await import(
33
+ /* webpackChunkName: "configuration-registration-cobol" */
34
+ '../cobol2.js').then(module => module)).default,
35
+ 'elixir': async () => (await import(
36
+ /* webpackChunkName: "configuration-registration-elixir" */
37
+ '../elixir3.js').then(module => module)).default,
38
+ 'erlang': async () => (await import(
39
+ /* webpackChunkName: "configuration-registration-erlang" */
40
+ '../erlang2.js').then(module => module)).default,
41
+ 'verilog': async () => (await import(
42
+ /* webpackChunkName: "configuration-registration-verilog" */
43
+ '../verilog2.js').then(module => module)).default,
44
+ 'postgresql': async () => (await import(
45
+ /* webpackChunkName: "configuration-registration-postgresql" */
46
+ '../postgresql.js').then(module => module)).default,
47
+ 'java': async () => (await import(
48
+ /* webpackChunkName: "configuration-registration-java" */
49
+ '../java2.js').then(module => module)).default,
50
+ 'lua': async () => (await import(
51
+ /* webpackChunkName: "configuration-registration-lua" */
52
+ '../lua2.js').then(module => module)).default,
53
+ 'cpptools': async () => (await import(
54
+ /* webpackChunkName: "configuration-registration-cpptools" */
55
+ '../cpptools.js').then(module => module)).default,
56
+ 'omnisharp': async () => (await import(
57
+ /* webpackChunkName: "configuration-registration-omnisharp" */
58
+ '../omnisharp.js').then(module => module)).default,
59
+ 'vscode-python': async () => (await import(
60
+ /* webpackChunkName: "configuration-registration-vscode-python" */
61
+ '../vscode-python.js').then(module => module)).default,
62
+ 'vscode-R': async () => (await import(
63
+ /* webpackChunkName: "configuration-registration-vscode-R" */
64
+ '../vscode-R.js').then(module => module)).default,
65
+ 'vscode-groovy': async () => (await import(
66
+ /* webpackChunkName: "configuration-registration-vscode-groovy" */
67
+ '../vscode-groovy.js').then(module => module)).default
68
+ };
69
+
70
+ const configurationRegistry = monaco.extra.Registry.as(monaco.extra.ConfigurationExtensions.Configuration);
71
+ async function loadConfigurationForExtension(extensionId) {
72
+ const loader$1 = loader[extensionId];
73
+
74
+ if (loader$1 == null) {
75
+ throw new Error("Unknown extension ".concat(extensionId));
76
+ }
77
+
78
+ const configuration = await loader$1();
79
+ configurationRegistry.registerConfigurations(configuration);
80
+ }
81
+ /**
82
+ * comes from https://github.com/microsoft/vscode/blob/16d0a319b28caa4b6cf4e6801fd508282b7533e0/src/vs/workbench/contrib/files/browser/files.contribution.ts#L132
83
+ * Required by the Lua language server
84
+ */
85
+
86
+ const FILES_EXCLUDE_CONFIG = 'files.exclude';
87
+ const FILES_ASSOCIATIONS_CONFIG = 'files.associations';
88
+ const ConfigurationScope = monaco.extra.ConfigurationScope;
89
+ const nls = {
90
+ localize: (key, defaultValue) => defaultValue
91
+ };
92
+ configurationRegistry.registerConfiguration({
93
+ id: 'files',
94
+ order: 9,
95
+ title: 'Files',
96
+ type: 'object',
97
+ properties: {
98
+ [FILES_EXCLUDE_CONFIG]: {
99
+ type: 'object',
100
+ markdownDescription: nls.localize('exclude', 'Configure glob patterns for excluding files and folders. For example, the file Explorer decides which files and folders to show or hide based on this setting. Refer to the `#search.exclude#` setting to define search specific excludes. Read more about glob patterns [here](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options).'),
101
+ default: _objectSpread2(_objectSpread2({}, {
102
+ '**/.git': true,
103
+ '**/.svn': true,
104
+ '**/.hg': true,
105
+ '**/CVS': true,
106
+ '**/.DS_Store': true,
107
+ '**/Thumbs.db': true
108
+ }), {
109
+ '**/*.crswap': true
110
+ /* filter out swap files used for local file access */
111
+
112
+ } ),
113
+ scope: ConfigurationScope.RESOURCE,
114
+ additionalProperties: {
115
+ anyOf: [{
116
+ type: 'boolean',
117
+ description: nls.localize('files.exclude.boolean', 'The glob pattern to match file paths against. Set to true or false to enable or disable the pattern.')
118
+ }, {
119
+ type: 'object',
120
+ properties: {
121
+ when: {
122
+ type: 'string',
123
+ // expression ({ "**/*.js": { "when": "$(basename).js" } })
124
+ pattern: '\\w*\\$\\(basename\\)\\w*',
125
+ default: '$(basename).ext',
126
+ description: nls.localize('files.exclude.when', 'Additional check on the siblings of a matching file. Use $(basename) as variable for the matching file name.')
127
+ }
128
+ }
129
+ }]
130
+ }
131
+ },
132
+ [FILES_ASSOCIATIONS_CONFIG]: {
133
+ type: 'object',
134
+ markdownDescription: nls.localize('associations', 'Configure file associations to languages (e.g. `"*.extension": "html"`). These have precedence over the default associations of the languages installed.'),
135
+ additionalProperties: {
136
+ type: 'string'
137
+ }
138
+ }
139
+ }
140
+ });
141
+
142
+ export { FILES_ASSOCIATIONS_CONFIG, FILES_EXCLUDE_CONFIG, loadConfigurationForExtension };
@@ -1,9 +1,9 @@
1
1
  import 'monaco-editor/esm/vs/language/html/monaco.contribution';
2
- import { r as registerWorkerLoader } from './worker.js';
2
+ import { r as registerWorkerLoader } from '../worker.js';
3
3
 
4
4
  const workerLoader = async () => (await import(
5
5
  /* webpackChunkName: "MonacoHtmlWorker" */
6
- './html.worker.js').then(module => module)).default;
6
+ '../html.worker.js').then(module => module)).default;
7
7
 
8
8
  registerWorkerLoader('html', workerLoader);
9
9
  registerWorkerLoader('handlebars', workerLoader);
@@ -1,7 +1,7 @@
1
- import { _ as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
1
+ import { _ as _objectSpread2 } from '../_rollupPluginBabelHelpers.js';
2
2
  import 'monaco-editor/esm/vs/language/json/monaco.contribution';
3
3
  import * as monaco from 'monaco-editor/esm/vs/editor/edcore.main';
4
- import { r as registerWorkerLoader } from './worker.js';
4
+ import { r as registerWorkerLoader } from '../worker.js';
5
5
 
6
6
  const registry = monaco.extra.Registry.as(monaco.extra.JsonContributionExtensions.JSONContribution); // Hack because the commands are filled by a code not run in monaco-editor
7
7
 
@@ -79,6 +79,6 @@ registry.onDidChangeSchema(updateDiagnosticsOptions);
79
79
 
80
80
  const workerLoader = async () => (await import(
81
81
  /* webpackChunkName: "MonacoJsonWorker" */
82
- './json.worker.js').then(module => module)).default;
82
+ '../json.worker.js').then(module => module)).default;
83
83
 
84
84
  registerWorkerLoader('json', workerLoader);