@codingame/monaco-editor-wrapper 2.3.0 → 3.0.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/README.md +1 -3
- package/dist/_monaco-editor_commonjs-external.js +28 -2
- package/dist/configuration/index.d.ts +3 -3
- package/dist/css.worker.js +1 -1
- package/dist/features/extensionConfigurations.js +1 -2
- package/dist/features/htmlContribution.js +7 -7
- package/dist/features/jsonContribution.js +6 -66
- package/dist/features/typescriptContribution.d.ts +0 -4
- package/dist/features/typescriptContribution.js +1 -29
- package/dist/hacks.d.ts +15 -2
- package/dist/html.worker.js +1 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.js +1343 -4899
- package/dist/index2.js +2191 -1309
- package/dist/json.worker.js +1 -1
- package/dist/keybindings/index.d.ts +1 -1
- package/dist/languages/extensions/extensionConfigurationLoader.d.ts +2 -2
- package/dist/languages/extensions/languageConfigurationLoader.d.ts +1 -10
- package/dist/languages/extensions/snippetLoader.d.ts +1 -2
- package/dist/languages/extensions/themeLoader.d.ts +1 -2
- package/dist/languages/index.d.ts +1 -0
- package/dist/languages/textMate/index.d.ts +0 -2
- package/dist/main.js +4342 -10
- package/dist/monaco.d.ts +2 -2
- package/dist/theme/index.d.ts +2 -2
- package/dist/ts.worker.js +1 -1
- package/dist/vim.js +45 -20
- package/dist/worker.js +1 -1
- package/package.json +26 -25
- package/stats.html +1451 -106
- package/dist/_rollupPluginBabelHelpers.js +0 -42
- package/dist/index3.js +0 -2208
- package/dist/keybindings/keybindingHelper.d.ts +0 -2
- package/dist/languages/monarch/index.d.ts +0 -7
- package/dist/languages/monarch/stub-generator.d.ts +0 -2
- package/dist/languages/textMate/CGTMGrammarFactory.d.ts +0 -5
- package/dist/languages/textMate/CGTMTokenizationSupport.d.ts +0 -8
- package/dist/stub-generator.js +0 -15
- package/dist/theme/registry.d.ts +0 -9
- package/dist/theme/semanticHighlight.d.ts +0 -1
- package/dist/theme/tools.d.ts +0 -12
package/README.md
CHANGED
|
@@ -66,9 +66,7 @@ To enable them, import the following files:
|
|
|
66
66
|
##### Highlighting/theme
|
|
67
67
|
|
|
68
68
|
This library uses VS Code themes instead of Monaco theme.
|
|
69
|
-
To add your custom theme, use the `
|
|
70
|
-
|
|
71
|
-
:warning: this method returns a promise, you need to wait for it before calling `monaco.editor.setTheme`.
|
|
69
|
+
To add your custom theme, use the `defineVSCodeTheme` method.
|
|
72
70
|
|
|
73
71
|
Default Monaco theme shouldn't be used.
|
|
74
72
|
|
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
|
+
|
|
5
|
+
function getDefaultExportFromCjs (x) {
|
|
6
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function getAugmentedNamespace(n) {
|
|
10
|
+
var f = n.default;
|
|
11
|
+
if (typeof f == "function") {
|
|
12
|
+
var a = function () {
|
|
13
|
+
return f.apply(this, arguments);
|
|
14
|
+
};
|
|
15
|
+
a.prototype = f.prototype;
|
|
16
|
+
} else a = {};
|
|
17
|
+
Object.defineProperty(a, '__esModule', {value: true});
|
|
18
|
+
Object.keys(n).forEach(function (k) {
|
|
19
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
20
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return n[k];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
return a;
|
|
28
|
+
}
|
|
3
29
|
|
|
4
30
|
var require$$0 = /*@__PURE__*/getAugmentedNamespace(monaco);
|
|
5
31
|
|
|
6
|
-
export { require$$0 as r };
|
|
32
|
+
export { getDefaultExportFromCjs as a, commonjsGlobal as c, getAugmentedNamespace as g, require$$0 as r };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor';
|
|
2
2
|
import { IConfigurationChangeEvent } from 'vscode/services';
|
|
3
3
|
import * as vscode from 'vscode';
|
|
4
|
-
import { updateUserConfiguration } from 'vscode/service-override/configuration';
|
|
4
|
+
import { updateUserConfiguration, IConfigurationNode, IConfigurationDefaults } from 'vscode/service-override/configuration';
|
|
5
5
|
import './files';
|
|
6
6
|
export declare function onConfigurationChanged(listener: (e: IConfigurationChangeEvent) => void): vscode.Disposable;
|
|
7
7
|
export declare function getConfiguration<C = Partial<monaco.editor.IEditorOptions>>(language?: string, section?: string): C | undefined;
|
|
8
8
|
export { updateUserConfiguration };
|
|
9
|
-
export declare function registerConfigurations(configurations:
|
|
10
|
-
export declare function registerDefaultConfigurations(defaultConfigurations:
|
|
9
|
+
export declare function registerConfigurations(configurations: IConfigurationNode[], validate?: boolean): void;
|
|
10
|
+
export declare function registerDefaultConfigurations(defaultConfigurations: IConfigurationDefaults['overrides'][]): void;
|